projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1add4bf
)
post-receive: fix warning in script for example when pushing deleted tags
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 25 Nov 2017 15:02:24 +0000
(16:02 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 25 Nov 2017 15:02:24 +0000
(16:02 +0100)
the "new" variable would be zero:
remote: fatal: bad object
0000000000000000000000000000000000000000
NOTE: when pushing new tags the "old" variable would be zero, this was
already fixed.
example_post-receive.sh
patch
|
blob
|
history
diff --git
a/example_post-receive.sh
b/example_post-receive.sh
index 549a7f8b4acbbe9d29ce58507228bcc6870a9270..065556903ec6734b0f75715309c95acccfb71310 100755
(executable)
--- 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