summaryrefslogtreecommitdiff
path: root/doc/bugs/git-annex_smudge_fails_on_git_add/comment_2_9e9d4ff9dd5fc083d8a86595912e1191._comment
blob: fb6042a89d7b67116b105ba3de4b534496f9439e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
"""]]