diff options
author | Joey Hess <joey@kitenet.net> | 2011-12-06 13:02:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-12-06 13:03:09 -0400 |
commit | 480495beb4a3422f006ee529df807a20cc944727 (patch) | |
tree | f20bb15a91ba0e44e45d2776fc6cdd61e3327d3f /doc/bugs/bad_behaviour_with_file_names_with_newline_in_them.mdwn | |
parent | cf5353acb4746cd0c2e736eecd066bd505555af3 (diff) |
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.
Diffstat (limited to 'doc/bugs/bad_behaviour_with_file_names_with_newline_in_them.mdwn')
-rw-r--r-- | doc/bugs/bad_behaviour_with_file_names_with_newline_in_them.mdwn | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/bugs/bad_behaviour_with_file_names_with_newline_in_them.mdwn b/doc/bugs/bad_behaviour_with_file_names_with_newline_in_them.mdwn index 5673d8060..530a8da5d 100644 --- a/doc/bugs/bad_behaviour_with_file_names_with_newline_in_them.mdwn +++ b/doc/bugs/bad_behaviour_with_file_names_with_newline_in_them.mdwn @@ -1,3 +1,5 @@ Found this out the hard way. See the comment in the below post for what happens. [[/forum/git_annex_add_crash_and_subsequent_recovery/]] + +> [[fixed|done]] --[[Joey]] |