From 1a320eafadc8763826c50933dae33909f078cafd Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 28 May 2023 03:07:54 -0400 Subject: [PATCH] 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. --- plugins/git/git-from-directory | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/git/git-from-directory b/plugins/git/git-from-directory index 8ab471880..980d663e5 100755 --- a/plugins/git/git-from-directory +++ b/plugins/git/git-from-directory @@ -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