From: Joey Hess Date: Wed, 5 Jul 2023 17:42:52 +0000 (-0400) Subject: also affects add X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~36^2~102 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fe0e0c05230c2b128d1da8512addb99bd258f431;p=git-annex.git also affects add --- diff --git a/doc/bugs/assist_--jobs_loses_location_information.mdwn b/doc/bugs/assist_--jobs_loses_location_information.mdwn index f45d648a6d..f9445a1d66 100644 --- a/doc/bugs/assist_--jobs_loses_location_information.mdwn +++ b/doc/bugs/assist_--jobs_loses_location_information.mdwn @@ -9,10 +9,6 @@ git remote add g2 ../g2 git-annex assist date > n - date > n2 - date > n3 - dd if=/dev/urandom of=n4 bs=1M count=200 - dd if=/dev/urandom of=n5 bs=1M count=200 git-annex assist --jobs=2 git-annex move --from origin git-annex move --from g2 @@ -20,6 +16,24 @@ 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. -This only happens when using assist. Using add followed by sync --content -doesn't have the problem. And with --jobs=1 it doesn't have the problem -either. --[[Joey]] +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]]