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:
304d095
)
ignore object 0000000000000000000000000000000000000000
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Wed, 9 Aug 2017 16:52:53 +0000
(18:52 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Wed, 9 Aug 2017 16:52:53 +0000
(18:52 +0200)
remote: fatal: bad object
0000000000000000000000000000000000000000
this can happen on initial repos or when pushing tags etc.
example_post-receive.sh
patch
|
blob
|
history
diff --git
a/example_post-receive.sh
b/example_post-receive.sh
index 5f827e109da42361bf00d4fbba7af00538f7701e..ba87e5175bb084e84c8d58324fe0b8532cf1bf50 100755
(executable)
--- a/
example_post-receive.sh
+++ b/
example_post-receive.sh
@@
-32,6
+32,8
@@
cd "${dir}" || exit 1
# detect git push -f
force=0
while read -r old new ref; do
+ test "${old}" = "0000000000000000000000000000000000000000" && continue
+
hasrevs=$(git rev-list "${old}" "^${new}" | sed 1q)
if test -n "${hasrevs}"; then
force=1