Prevent key names from containing newlines.
There are several places where it's assumed a key can be written on one line. One is in the format of the .git/annex/unused files. The difficult one is that filenames derived from keys are fed into git cat-file --batch, which has a line based input. (And no -z option.) So, for now it's best to block such keys being created.
Showing
- Backend.hs 7 additions, 1 deletionBackend.hs
- Backend/SHA.hs 6 additions, 4 deletionsBackend/SHA.hs
- debian/changelog 1 addition, 0 deletionsdebian/changelog
- doc/bugs/bad_behaviour_with_file_names_with_newline_in_them.mdwn 2 additions, 0 deletions...s/bad_behaviour_with_file_names_with_newline_in_them.mdwn
Please register or sign in to comment