comment
authorJoey Hess <joeyh@joeyh.name>
Mon, 26 Jul 2021 21:09:14 +0000 (17:09 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 26 Jul 2021 21:09:14 +0000 (17:09 -0400)
doc/bugs/__34__failed_to_send_content_to_remote__34__/comment_18_eb8b597167a6708a27ac03ef4fbf3632._comment [new file with mode: 0644]

diff --git a/doc/bugs/__34__failed_to_send_content_to_remote__34__/comment_18_eb8b597167a6708a27ac03ef4fbf3632._comment b/doc/bugs/__34__failed_to_send_content_to_remote__34__/comment_18_eb8b597167a6708a27ac03ef4fbf3632._comment
new file mode 100644 (file)
index 0000000..e69ba7f
--- /dev/null
@@ -0,0 +1,31 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 18"""
+ date="2021-07-26T20:29:13Z"
+ content="""
+One way to reproduce this is to replace the git repository with a copy
+produced with eg `cp -r` (not `-a`), with the file unlocked before that
+point. Eg:
+
+       #!/bin/sh
+       set -e
+       cd tmp
+       sudo rm -rf xx yy xx.old
+       git init xx
+       cd xx
+       git annex init
+       echo hi > foo
+       git annex add foo
+       git annex unlock foo
+       git commit -m add
+       cd ..
+       git clone xx yy
+       mv xx xx.old
+       sleep 10
+       cp -r xx.old xx
+       cd yy
+       git annex init
+       git annex get foo
+
+I doubt this is what people have been doing to see the behavior though.
+"""]]