Skip to content

Commit

Permalink
deforaos-git-hook: ignore updates on deleted references
Browse files Browse the repository at this point in the history
  • Loading branch information
khorben committed Aug 25, 2022
1 parent c31a908 commit 23e9d5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/deforaos-git-hook
Original file line number Diff line number Diff line change
Expand Up @@ -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/}" \
Expand Down

0 comments on commit 23e9d5b

Please sign in to comment.