summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-04-12 13:16:47 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-04-12 13:16:47 -0400
commitc05bd4c151450a4aef850a9352d37375a26e01bc (patch)
tree2726408d536ab38a905102ac229acaa69a8e272c
parenta13186592123546030eccf1d9841522c1ad6c5f1 (diff)
response
-rw-r--r--doc/bugs/git-annex_smudge_fails_on_git_add/comment_2_9e9d4ff9dd5fc083d8a86595912e1191._comment26
1 files changed, 26 insertions, 0 deletions
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
+"""]]