From c05bd4c151450a4aef850a9352d37375a26e01bc Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 12 Apr 2016 13:16:47 -0400 Subject: response --- ...ent_2_9e9d4ff9dd5fc083d8a86595912e1191._comment | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/bugs/git-annex_smudge_fails_on_git_add/comment_2_9e9d4ff9dd5fc083d8a86595912e1191._comment diff --git a/doc/bugs/git-annex_smudge_fails_on_git_add/comment_2_9e9d4ff9dd5fc083d8a86595912e1191._comment b/doc/bugs/git-annex_smudge_fails_on_git_add/comment_2_9e9d4ff9dd5fc083d8a86595912e1191._comment new file mode 100644 index 000000000..fb6042a89 --- /dev/null +++ b/doc/bugs/git-annex_smudge_fails_on_git_add/comment_2_9e9d4ff9dd5fc083d8a86595912e1191._comment @@ -0,0 +1,26 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 2""" + date="2016-04-12T17:07:13Z" + content=""" +Since you're trying to use the mimetype feature, have you checked that +your git-annex is built with support for it? Run `git annex version` and +check for "MagicMime" in the build flags. + +Indeed, I'm possitive that's the problem with your build, since the stack +build disables this feature by default. Because it needs libmagic to be +installed, and stack can't install such C libraries and to get a stack +build that works everywhere, it has to be disabled by default. + +So the solution for you is to tell stack to build with the MagicMime build +flag. + +Remaining question is, why is git-annex not displaying an error in this +situation? I tried to replicate it, and it seems to display a nice +error message here: + + joey@darkstar:~/tmp/tt>git add bash + git-annex: bad annex.largefiles configuration: Parse failure: "mimetype" not supported; not built with MagicMime support + error: external filter git-annex smudge --clean %f failed 1 + error: external filter git-annex smudge --clean %f failed +"""]] -- cgit v1.2.3