summaryrefslogtreecommitdiff
path: root/doc/bugs/error_with_file_names_starting_with_dash.mdwn
blob: 84bf1cfa072444d10734499104743907597d82a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
git annex add has problems if items start with dashes, example:

-wut-a-directory-name-/file1

leads to

[[!format bash """
add -wut-a-directory-name-/file1 (checksum...) sha1sum: invalid option -- 'u'
„sha1sum --help“ gibt weitere Informationen.

  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]]