fix: Change to app directory when calling git worktree add
Closes #2864
This commit is contained in:
1 parent
e9873c58a8
commit
9f64fdb9b6
1 file changed
+2
@@ -37,7 +37,9 @@ git_build_app_repo() {
|
|||||||
|
|
||||||
if use_git_worktree; then
|
if use_git_worktree; then
|
||||||
# git worktree - this method uses git worktree which was introduced in git 2.5
|
# 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
|
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
|
pushd "$GIT_BUILD_APP_REPO_TMP_WORK_DIR" > /dev/null
|
||||||
else
|
else
|
||||||
# git clone - this method creates a new git repository and adds the primary
|
# git clone - this method creates a new git repository and adds the primary
|
||||||
|
|||||||
Reference in new issue
Block a user