From: yarikoptic Date: Tue, 25 Aug 2020 16:27:11 +0000 (+0000) Subject: Added a comment: pidlock to blame! X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~118^2~76^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4daf4ea06f1cfc59990756051eaacb4aa6b60fd8;p=git-annex.git Added a comment: pidlock to blame! --- diff --git a/doc/bugs/get_is_stuck_unless_a_clone_was_previously_explicitly___34__annex_init__34__ed/comment_3_3b3dc5b946e405955b68b0c4c3d7df3d._comment b/doc/bugs/get_is_stuck_unless_a_clone_was_previously_explicitly___34__annex_init__34__ed/comment_3_3b3dc5b946e405955b68b0c4c3d7df3d._comment new file mode 100644 index 0000000000..8d3239fb23 --- /dev/null +++ b/doc/bugs/get_is_stuck_unless_a_clone_was_previously_explicitly___34__annex_init__34__ed/comment_3_3b3dc5b946e405955b68b0c4c3d7df3d._comment @@ -0,0 +1,47 @@ +[[!comment format=mdwn + username="yarikoptic" + avatar="http://cdn.libravatar.org/avatar/f11e9c84cb18d26a1748c33b48c924b4" + subject="pidlock to blame!" + date="2020-08-25T16:27:08Z" + content=""" +Thank you Kyle! your comment reminded me that yesterday while I was trying to reproduce [stalling issue on NFS (not yet reported here)]() I have set globally pidlock=true! + +
+Here is an adjusted script which sets it in the clone and causes the stall (also changed to use git annex add instead of git add) + +```shell +#!/bin/bash + +export PS4='> ' +set -x +set -eu +cd \"$(mktemp -d ${TMPDIR:-/tmp}/dl-XXXXXXX)\" + +( +mkdir src +cd src +git init +git annex init + + +touch 123 +git annex add 123 +git commit -m 123 123 +) + +#git clone --shared src dest +git clone src dest + +( +cd dest +#git annex init +# would stall unless we git annex init above with 8.20200810+git5-gb41f77445-1~ndall+1 +git config annex.pidlock true +git annex get 123 +) + +ls -lLi {dest,src}/123 + +``` +
+"""]]