Support filenames that start with a dash; when such a file is passed to a utility it will be escaped to avoid it being interpreted as an option.

This commit is contained in:
Joey Hess 2011-02-25 01:13:01 -04:00
parent e61b47bc8a
commit 836e71297b
9 changed files with 29 additions and 10 deletions

View file

@ -10,3 +10,6 @@ add -wut-a-directory-name-/file1 (checksum...) sha1sum: invalid option -- 'u'
git-annex: <file descriptor: 15>: hGetLine: end of file
"""]]
> This is fixed in git, at least I think I've found all cases where
> filenames are passed to programs and escaped them. --[[Joey]] [[done]]