From 23e9d5b1fa27eb4a24a26df7de77dd766e5209ce Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 25 Aug 2022 05:47:38 +0200 Subject: [PATCH] deforaos-git-hook: ignore updates on deleted references --- src/deforaos-git-hook | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/deforaos-git-hook b/src/deforaos-git-hook index 93375ca..aa3ccc4 100755 --- a/src/deforaos-git-hook +++ b/src/deforaos-git-hook @@ -58,6 +58,8 @@ _hook_jobs() res=0 while read oldrev newrev refname; do + [ "$newrev" != "0000000000000000000000000000000000000000" ] || + continue case "$refname" in refs/heads/*) _jobs_branch "${refname#refs/heads/}" \