From 87e9bea6da7677bb196e46d0f8069a71466784ca Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 1 May 2018 00:02:08 -0400 Subject: [PATCH] fix: ignore issues with popd when OS versions with stricter security Refs #2978 Closes #3178 --- plugins/git/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git/functions b/plugins/git/functions index aa3089fd5..19a9f1724 100755 --- a/plugins/git/functions +++ b/plugins/git/functions @@ -45,7 +45,7 @@ git_build_app_repo() { # 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 + popd > /dev/null 2>&1 || pushd "/tmp" > /dev/null pushd "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" > /dev/null else # git clone - this method creates a new git repository and adds the primary