comment
authorJoey Hess <joeyh@joeyh.name>
Fri, 21 Jul 2023 17:01:46 +0000 (13:01 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 21 Jul 2023 17:01:46 +0000 (13:01 -0400)
doc/bugs/git_annex_upgrade_fails/comment_1_26e3224b9aad57837969c309ae4bdcd2._comment [new file with mode: 0644]

diff --git a/doc/bugs/git_annex_upgrade_fails/comment_1_26e3224b9aad57837969c309ae4bdcd2._comment b/doc/bugs/git_annex_upgrade_fails/comment_1_26e3224b9aad57837969c309ae4bdcd2._comment
new file mode 100644 (file)
index 0000000..5784ae2
--- /dev/null
@@ -0,0 +1,28 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2023-07-21T16:51:35Z"
+ content="""
+Please strace `git-annex upgrade` and display the end part of the strace,
+before it displays this error message:
+
+       git-annex: .git/annex: createDirectory: does not exist (No such file or directory)
+
+I have not been able to find a situation where it can fail like that.
+If .git/annex somehow doesn't exist (which would be very strange to start
+with), it will be created during the upgrade.
+
+The closest I've gotten is making .git/annex a symlink to a directory that
+doesn't exist, which causes the upgrade to fail like this:
+
+       git-annex: .git/annex: createDirectory: already exists (File exists)
+
+Now, if .git didn't exist, it would make sense that creating .git/annex
+would fail like that. But of course, if .git doesn't exist, it's not a git
+repository. Unless, I suppose, you have done something to make git use a
+different directory than .git?
+
+(I thought .git might be a gitlink file as used for a submodule, 
+but testing `git-annex upgrade` in a submodule with a gitlink file,
+it does convert it to a symlink and creating .git/annex succeeds.)
+"""]]