X-Git-Url: https://git.ao2.it/config/vcsh.git/blobdiff_plain/d8252a90e24b76f14fabfeb0a2a6d2c281dd4d6e..20cf74a268166d49d162f61a4174e19016763dcb:/.config/vcsh/hooks-available/populate-fully.sh diff --git a/.config/vcsh/hooks-available/populate-fully.sh b/.config/vcsh/hooks-available/populate-fully.sh index 46e155f..1b2c612 100755 --- a/.config/vcsh/hooks-available/populate-fully.sh +++ b/.config/vcsh/hooks-available/populate-fully.sh @@ -2,7 +2,7 @@ set -e -# Only one vcsh instance at a time can have the work dir fully populated. +# Only one vcsh instance at a time can have the working tree fully populated. LOCKDIR=/run/lock/vcsh # Kill the parent process because vcsh does not catch the hook exit value. @@ -13,7 +13,7 @@ mkdir "$LOCKDIR" 2>/dev/null || { echo "An instance of vcsh already entered a re echo $PPID > "$LOCKDIR/pid" # git read-tree manual page says this is the proper way to fully repopulate -# the working directory +# the working tree. git config core.sparseCheckout true rm -f "$GIT_DIR/info/sparse-checkout" echo "/*" > "$GIT_DIR/info/sparse-checkout"