From 639f05141fc6138ae6ea04d3844d9de870dc5b4e Mon Sep 17 00:00:00 2001 From: David Zuelke Date: Tue, 17 Mar 2015 00:49:19 +1100 Subject: [PATCH] unset GIT_DIR at beginning of compile --- bin/compile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/compile b/bin/compile index 34bb6974a..cf2d8c685 100755 --- a/bin/compile +++ b/bin/compile @@ -48,6 +48,9 @@ source $BP_DIR/bin/util/common.sh source $BP_DIR/bin/util/newrelic.sh source $BP_DIR/bin/util/blackfire.sh +# if this is set it prevents Git clones (e.g. for Composer installs from source) during the build in some circumstances, and it is set in SSH Git deploys to Heroku +unset GIT_DIR + export_env_dir "$ENV_DIR" '^[A-Z_][A-Z0-9_]*$' '^(HOME|PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH|LD_LIBRARY_PATH|STACK|S3_URL|RTVS_URL|REQUEST_ID)$' BUILDPACK_URL=${BUILDPACK_URL:-} # Anvil has none