summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-10-16 12:46:24 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-10-16 12:46:24 -0400
commit3a31b000bbe0db0948f0422020f7381909b93e57 (patch)
tree9fc63f92be8415d15bd4ac82f47b9079683092ed /doc
parent12a038aa806f16004f4e4afa8f3ee9fa752eae29 (diff)
tighten file2key to not produce invalid keys with no keyName
A file named "foo-" or "foo-bar" was taken as a key's file, with a backend of "foo", and an empty keyName. This led to various problems, especially because converting that key back to a file did not yeild the same filename.
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/git-annex:_status:_1_failed.mdwn9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/bugs/git-annex:_status:_1_failed.mdwn b/doc/bugs/git-annex:_status:_1_failed.mdwn
index 31089b53b..65f00469c 100644
--- a/doc/bugs/git-annex:_status:_1_failed.mdwn
+++ b/doc/bugs/git-annex:_status:_1_failed.mdwn
@@ -14,3 +14,12 @@ i get :
how could i fix this issue ?
many thanks for help
+
+> [[done]]; I managed to reproduce this bug by making a temp file named
+> ".git/annex/tmp/foo-", or indeed with any dash in it. This is enough
+> to make git-annex think it's a key, but badly formed enough that
+> it fails trying to use that key. Fixed to ignore such non-key files.
+>
+> I'm unsure why `.git/annex/tmp` would have such files in it.
+> Perhaps the assistant was running, but crashed while adding files?
+> --[[Joey]]