diff options
author | https://www.google.com/accounts/o8/id?id=AItOawmURXBzaYE1gmVc-X9eLAyDat_6rHPl670 <Bram@web> | 2014-07-26 16:39:41 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-07-26 16:39:41 +0000 |
commit | 9954f6acc8658ee3dc1b943a623b9a7553343189 (patch) | |
tree | 0e14f9c9d80a24e590958115e6efaf957aa5d525 /doc | |
parent | 0f346574ad8693f3429710ec6714defe785f27c5 (diff) |
Diffstat (limited to 'doc')
-rw-r--r-- | doc/bugs/git_annex_import_fails_on_filenames_with_newlines_in_them.mdwn | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/doc/bugs/git_annex_import_fails_on_filenames_with_newlines_in_them.mdwn b/doc/bugs/git_annex_import_fails_on_filenames_with_newlines_in_them.mdwn new file mode 100644 index 000000000..3b861981d --- /dev/null +++ b/doc/bugs/git_annex_import_fails_on_filenames_with_newlines_in_them.mdwn @@ -0,0 +1,41 @@ +### Please describe the problem. +I am importing a lot of old documents into my annex. Some of these old files apparently have newlines in their filename. A run of `git annex import` aborts when it encounters such a file; the file is moved to the annex, but it is left unstaged. + +### What steps will reproduce the problem? +[[!format sh """ +bram@durian% mkdir annex +bram@durian% cd annex +bram@durian% git init +Initialized empty Git repository in /home/bram/tmp/t/annex/.git/ +bram@durian% git annex init +init ok +(Recording state in git...) +bram@durian% echo foo > ../$'foo\nbar' +bram@durian% ls -lb .. +total 8 +drwxr-xr-x 3 bram bram 4096 Jul 26 18:20 annex/ +-rw-r--r-- 1 bram bram 4 Jul 26 18:20 foo\nbar +bram@durian% git annex import ../foo$'\n'bar +import foo +bar git-annex: unknown response from git cat-file ("HEAD:./foo missing","HEAD:./foo\nbar") +bram@durian% git status +On branch master + +Initial commit + +Untracked files: + (use "git add <file>..." to include in what will be committed) + + "foo\nbar" + +nothing added to commit but untracked files present (use "git add" to track) +bram@durian% cat $'foo\nbar' +foo +"""]] + + +### What version of git-annex are you using? On what operating system? + Debian unstable + git-annex version: 5.20140717 + git version 2.0.1 + Linux durian 3.14-1-amd64 #1 SMP Debian 3.14.9-1 (2014-06-30) x86_64 GNU/Linux |