fix: ensure repository is bare when calling git:sync

Closes #4636
This commit is contained in:
Jose Diaz-Gonzalez
2021-07-11 21:26:14 -04:00
parent 745473322a
commit 97b0aa3eb8

View File

@@ -421,6 +421,7 @@ fn-git-clone() {
rsync -a "$APP_CLONE_ROOT/.git/" "$APP_ROOT"
fn-git-create-hook "$APP"
fn-git-cmd "$APP_CLONE_ROOT" config --add core.bare true
}
fn-git-cmd() {
@@ -459,6 +460,8 @@ fn-git-fetch() {
GIT_TERMINAL_PROMPT=0 fn-git-cmd "$APP_ROOT" fetch --update-head-ok remote
fn-git-cmd "$APP_ROOT" update-ref "refs/heads/$DOKKU_DEPLOY_BRANCH" "$GIT_REF"
fi
fn-git-cmd "$APP_CLONE_ROOT" config --add core.bare true
}
fn-git-last-updated-at() {