[[!comment format=mdwn
 username="joey"
 subject="""comment 1"""
 date="2019-03-18T18:03:41Z"
 content="""
No need to complicate this with Android, this is sufficient to reproduce
the problem:

	joey@darkstar:/tmp/a>touch ./-foo
	joey@darkstar:/tmp/a>git add ./-foo
	Invalid option `-foo'
	
	Usage: git-annex smudge (FILE [--clean] | --update)
	error: external filter 'git-annex smudge --clean %f' failed 1

The fix is to edit .git/config to contain:

	[filter "annex"]
	        smudge = git-annex smudge -- %f
	        clean = git-annex smudge --clean -- %f

The added -- before the filename prevents confusing it with an option.

I've done this for new git-annex repositories, and `git annex init` will
also update existing repos.
"""]]
