renamed bug
authorJoey Hess <joeyh@joeyh.name>
Wed, 5 Jul 2023 18:09:21 +0000 (14:09 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 5 Jul 2023 18:09:21 +0000 (14:09 -0400)
doc/bugs/assist_--jobs_loses_location_information.mdwn [deleted file]
doc/bugs/safe.bareRepository_breaks_git-annex_uuid.mdwn [new file with mode: 0644]

diff --git a/doc/bugs/assist_--jobs_loses_location_information.mdwn b/doc/bugs/assist_--jobs_loses_location_information.mdwn
deleted file mode 100644 (file)
index 0a14972..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-      git init g
-      cd g
-      git annex init
-      git commit --allow-empty -m foo
-      cd ..
-      git clone g g2
-      git clone g g3
-      cd g3
-      git remote add g2 ../g2
-      git-annex assist
-      date > n
-      git-annex assist --jobs=2
-      git-annex move --from origin
-      git-annex move --from g2
-
-The final move fails, complaining it's not safe to drop the last copy. It
-has somehow lost track of the fact that there's a local copy.
-
-Actually... This also happens not using assist, just add:
-
-        git init g
-        cd g
-        git annex init
-        git commit --allow-empty -m foo
-        cd ..
-        git clone g g3
-        cd g3
-        git-annex init
-        date > n
-        git-annex add --jobs=2
-        git-annex whereis
-
-(The clone of g to g3 is for some reason needed... Without that remote, the
-bug doesn't happen.)
-
-Somehow, when add calls logStatus, getUUID == NoUUID, so it doesn't record
-anything. This despite it having initialized with a UUID earlier.
-Even with a manual git-annex init before the command that still happens.
---[[Joey]]
-
-I think this must be related:
-
-       joey@darkstar:~/tmp>git init g
-       Initialized empty Git repository in /home/joey/tmp/g/.git/
-       joey@darkstar:~/tmp>cd g
-       joey@darkstar:~/tmp/g>git-annex init
-       init  ok
-       (recording state in git...)
-       joey@darkstar:~/tmp/g>git show git-annex | tail
-       + joey@darkstar:~/tmp/g timestamp=1688579729.946567508s
-
-uuid.log has a NoUUID item logged to it. This is despite annex.uuid being set.
-10.20230407 --[[Joey]]
diff --git a/doc/bugs/safe.bareRepository_breaks_git-annex_uuid.mdwn b/doc/bugs/safe.bareRepository_breaks_git-annex_uuid.mdwn
new file mode 100644 (file)
index 0000000..1a9296a
--- /dev/null
@@ -0,0 +1,20 @@
+Turns out that git-annex breaks badly when git is configured with
+`safe.bareRepository = explicit`.
+
+The breakage starts with git-annex init:
+
+       joey@darkstar:~/tmp>git init g
+       Initialized empty Git repository in /home/joey/tmp/g/.git/
+       joey@darkstar:~/tmp>cd g
+       joey@darkstar:~/tmp/g>git-annex init
+       init  ok
+       (recording state in git...)
+       joey@darkstar:~/tmp/g>git show git-annex | tail
+       + joey@darkstar:~/tmp/g timestamp=1688579729.946567508s
+
+uuid.log has a NoUUID item logged to it. This is despite annex.uuid being set.
+10.20230407 --[[Joey]]
+
+And it seems this is because git-annex runs `git config --list`
+inside `.git`.. Which with that config set, omits looking at
+`config`.