Unset `GIT_DIR` prior to executing bootstrap

This commit is contained in:
Tim Byrne 2017-01-30 21:20:37 -06:00
parent 97b784d55d
commit 2a7203a67b
No known key found for this signature in database
GPG Key ID: 6CBE24C2FD8CF76E
1 changed files with 3 additions and 0 deletions

3
yadm
View File

@ -180,6 +180,9 @@ function bootstrap() {
bootstrap_available || error_out "Cannot execute bootstrap\n'$YADM_BOOTSTRAP' is not an executable program."
# GIT_DIR should not be set for user's bootstrap code
unset GIT_DIR
echo "Executing $YADM_BOOTSTRAP"
exec "$YADM_BOOTSTRAP"