git-annex/debian
Joey Hess ebd778c519 Escape ':' in file/directory names to avoid it being treated as a pathspec by some git commands
A git pathspec is a filename, except when it starts with ':', it's taken
to refer to a branch, etc. Rather than special case ':', any filename
starting with anything unusual is prefixed with "./"

This could have been a real mess to deal with, but luckily SafeCommand
is already extensively used and so we know at the type level the difference
between parameters that are files, and parameters that are command options.

Testing did show that Git.Queue was not using SafeCommand on
filenames fed to xargs. (Filenames starting with '-' worked before only
because -- was used to separate filenames from options when calling eg git
add.)

The test suite now passes with filenames starting with ':'. However, I did
not keep that change to it, because such filenames are probably not legal
on windows, and I have enough ugly windows ifdefs in there as it is.

This commit was sponsored by Otavio Salvador. Thanks!
2013-08-01 15:15:49 -04:00
..
changelog Escape ':' in file/directory names to avoid it being treated as a pathspec by some git commands 2013-08-01 15:15:49 -04:00
compat debhelper v9 2012-01-15 14:53:38 -04:00
control typo 2013-07-28 17:04:46 -04:00
copyright point to android icons too 2013-07-21 13:28:35 -04:00
doc-base Add doc-base file. Closes: #621408 2011-04-06 21:57:22 -04:00
menu fixups 2013-05-15 22:48:27 -04:00
NEWS releasing version 3.20120123 2012-01-23 15:09:50 -04:00
rules rename var 2013-05-10 18:52:35 -04:00