fix: add missing hook creation before clone

In the case where a repository is new, the check to see if it is an empty repo during clone fails. We therefore create the initial repo via the fn-git-create-hook call when initializing the repo.
This commit is contained in:
Jose Diaz-Gonzalez
2023-05-28 03:07:54 -04:00
parent 8faa338bd4
commit 1a320eafad

View File

@@ -37,6 +37,7 @@ trigger-git-git-from-directory() {
suppress_output fn-git-cmd "$TMP_WORK_DIR" commit -m "Initial commit"
REV="$(fn-git-cmd "$TMP_WORK_DIR" rev-parse HEAD)"
fn-git-create-hook "$APP"
fn-git-clone "$APP" "$TMP_WORK_DIR" "$DEPLOY_BRANCH"
else
# update existing repo