summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-10-25 15:42:15 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-10-25 15:42:15 -0400
commit7f6d32fb7d9bd614ea5efdf9393f2f0dcde14e16 (patch)
tree5ad93e23823c24f3f38adeb4fffc379212cb0247
parenta757a9136683147a942f384b304b9a3326321171 (diff)
reply
-rw-r--r--doc/bugs/fix_git-annex_paths___47___objects___40__repository_not_available__41__/comment_1_70e050ef94ab57e74b45b18f3f9ca1f3._comment49
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/bugs/fix_git-annex_paths___47___objects___40__repository_not_available__41__/comment_1_70e050ef94ab57e74b45b18f3f9ca1f3._comment b/doc/bugs/fix_git-annex_paths___47___objects___40__repository_not_available__41__/comment_1_70e050ef94ab57e74b45b18f3f9ca1f3._comment
new file mode 100644
index 000000000..bae013a87
--- /dev/null
+++ b/doc/bugs/fix_git-annex_paths___47___objects___40__repository_not_available__41__/comment_1_70e050ef94ab57e74b45b18f3f9ca1f3._comment
@@ -0,0 +1,49 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2017-10-25T19:13:16Z"
+ content="""
+The strance output you pasted shows git-annex checking the *local*
+repository to see if it has a copy of the file. As far as I can see, that
+has nothing to do with any failure to get the file from a remote
+repository.
+
+> Clone that to a remote server. Unfortunately I don't remember the exact commands - I think that was done with the rsync special backend.
+
+Are you talking about a git-annex rsync special remote,
+or a git repository accessed via a rsync:// url, or what?
+
+> /home/yaroslav/work.git/d0d/994/SHA256E-s81068--de1d8de99645d74ba1ea186b6cabd1fc116cb6c1823130756f33ff81807815ed.pdf/SHA256E-s81068--de1d8de99645d74ba1ea186b6cabd1fc116cb6c1823130756f33ff81807815ed.pdf
+
+What this path tells me is that, despite this being a bare git repository,
+the content of objects is not in work.git/annex/objects/ where it belongs,
+but at the top of the repository.
+
+Hypothesis: You created this bare git repository. But then rather than
+simply having git-annex send contents of files to it in the sane and
+regular way, you them proceeded to set up some kind of special remote,
+in the same directory. It could have been a rsync special remote, or
+a directory special remote. You copied the files to that special remote.
+
+Then, you deleted the original git repository, which was the only one that
+knew about the special remote, before syncing it to anywhere.
+
+That fits all the evidence. I don't think that's a mistake many people
+are likely to make.
+
+It should be possible to recover from this situation by:
+
+ cd /home/yaroslav/work.git/
+ mkdir -p annex/objects
+ mv d0d annex/objects
+ # also move any other 3 letter directories that have annex
+ # objects in them
+ git annex fsck
+
+Then after `git annex sync` in your clone, it should know where the content
+is and be able to get it from the bare repo.
+
+Assuming that works, I'm having a hard time treating this as any kind
+of bug in git-annex. You put the gun in a vise, bent its barrel
+to a 180 degree angle, and... ;)
+"""]]