From 2a7203a67b4a0307df2819f87546239d656ada03 Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Mon, 30 Jan 2017 21:20:37 -0600 Subject: [PATCH] Unset `GIT_DIR` prior to executing bootstrap --- yadm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yadm b/yadm index 65df72f..f12ab4e 100755 --- a/yadm +++ b/yadm @@ -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"