feat: allow usage of git 2.13.0+ by unsetting GIT_QUARANTINE_PATH during git worktree usage

Closes #2796
This commit is contained in:
Jose Diaz-Gonzalez
2017-11-05 12:34:47 -05:00
committed by GitHub
parent 39b879058d
commit 64a1c91b76

View File

@@ -38,7 +38,9 @@ git_build_app_repo() {
if use_git_worktree; then
# git worktree - this method uses git worktree which was introduced in git 2.5
pushd "$DOKKU_ROOT/$APP" > /dev/null
git worktree add "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" "$REV" > /dev/null
# unset the git quarantine path to allow us to use 2.13.0+
# See this issue for more information: https://github.com/dokku/dokku/issues/2796
env -u GIT_QUARANTINE_PATH git worktree add "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" "$REV" > /dev/null
popd > /dev/null
pushd "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" > /dev/null
else