X-Git-Url: https://git.ao2.it/config/vcsh.git/blobdiff_plain/20cf74a268166d49d162f61a4174e19016763dcb..c6461aa97fe3711c2055721aa37d8b0d19579f49:/.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 1b2c612..b038d1e 100755 --- a/.config/vcsh/hooks-available/populate-fully.sh +++ b/.config/vcsh/hooks-available/populate-fully.sh @@ -2,6 +2,9 @@ set -e +# If the vcsh repository does not exist, exit without doing anything. +[ -d "$GIT_DIR" ] || exit 0 + # Only one vcsh instance at a time can have the working tree fully populated. LOCKDIR=/run/lock/vcsh