From a8750462a236e94eb1cd6db31d41bac444f2b72d Mon Sep 17 00:00:00 2001 From: Virgile Prevosto <virgile.prevosto@m4x.org> Date: Mon, 29 Jan 2024 18:12:47 +0100 Subject: [PATCH] [git-hook] fix pre-push hook in case of new branch --- dev/git-hooks/pre-push.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/git-hooks/pre-push.sh b/dev/git-hooks/pre-push.sh index 0cd0f15bcd4..2a95ad3fd69 100755 --- a/dev/git-hooks/pre-push.sh +++ b/dev/git-hooks/pre-push.sh @@ -36,7 +36,7 @@ do # Handle delete : else - if test "$remote_oid" = "$zero" + if test "$remote_oid" = "$empty" then # New branch, examine all commits range="$local_oid" -- GitLab