Merge pull request #4686 from dokku/4636-git-sync-bare

Ensure repository is bare when calling git:sync
This commit is contained in:
Jose Diaz-Gonzalez
2021-07-12 00:52:06 -04:00
committed by GitHub

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_ROOT" config --add core.bare true
}
fn-git-last-updated-at() {