summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexample_post-receive.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/example_post-receive.sh b/example_post-receive.sh
index 549a7f8..0655569 100755
--- a/example_post-receive.sh
+++ b/example_post-receive.sh
@@ -37,6 +37,7 @@ cd "${dir}" || exit 1
force=0
while read -r old new ref; do
test "${old}" = "0000000000000000000000000000000000000000" && continue
+ test "${new}" = "0000000000000000000000000000000000000000" && continue
hasrevs=$(git rev-list "${old}" "^${new}" | sed 1q)
if test -n "${hasrevs}"; then