This commit is contained in:
mail@de3e4e58ccb420b8d9b78ef262ee0c80e021f199 2016-11-13 01:23:15 +00:00 committed by admin
parent 0718de2026
commit 1e88c12576

View file

@ -0,0 +1,43 @@
### Please describe the problem.
If a filename has a single space (and only one space), `git annex add` will fail out with the following message:
add one two git-annex: unknown response from git cat-file ("HEAD:./one two missing",Ref "HEAD:./one two")
CallStack (from HasCallStack):
error, called at ./Git/CatFile.hs:102:28 in main:Git.CatFile
### What steps will reproduce the problem?
Run the following:
git init .
git annex init
touch "one two"
# this will cause error
git annex add "one two"
touch "one two three"
# this is fine
git annex add "one two three"
### What version of git-annex are you using? On what operating system?
Output of `git annex version`
git-annex version: 6.20161027
build flags: Assistant Webapp Pairing Testsuite S3(multipartupload)(storageclasses) WebDAV Inotify DBus DesktopNotify XMPP ConcurrentOutput TorrentParser MagicMime Feeds Quvi
key/value backends: SHA256E SHA256 SHA512E SHA512 SHA224E SHA224 SHA384E SHA384 SHA3_256E SHA3_256 SHA3_512E SHA3_512 SHA3_224E SHA3_224 SHA3_384E SHA3_384 SKEIN256E SKEIN256 SKEIN512E SKEIN512 SHA1E SHA1 MD5E MD5 WORM URL
remote types: git gcrypt S3 bup directory rsync web bittorrent webdav tahoe glacier ddar hook external
local repository version: 5
supported repository versions: 3 5 6
upgrade supported from repository versions: 0 1 2 3 4 5
operating system: linux x86_64
Operating System: Linux (NixOS 16.09.909.238c7e0 (Flounder))
### Please provide any additional information below.
Maybe related to [https://git-annex.branchable.com/forum/unknown_response_from_git_cat-file/](https://git-annex.branchable.com/forum/unknown_response_from_git_cat-file/) or [https://git-annex.branchable.com/bugs/git_annex_import_fails_on_filenames_with_newlines_in_them/](https://git-annex.branchable.com/bugs/git_annex_import_fails_on_filenames_with_newlines_in_them/)?
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
Just starting out with it as a way of archiving some of my media seems to work great apart from this. Thanks a bunch!