Introduction
Introduction Statistics Contact Development Disclaimer Help
ignore object 0000000000000000000000000000000000000000 - stagit-gopher - static…
git clone git://git.codemadness.org/stagit-gopher
Log
Files
Refs
README
LICENSE
---
commit 54b6f7553abb30a4f6aee520993c99417b5926fa
parent 3c4e84033b5acb57912e375317af1a6ff8b92d7a
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 9 Aug 2017 18:53:46 +0200
ignore object 0000000000000000000000000000000000000000
remote: fatal: bad object 0000000000000000000000000000000000000000
this can happen on initial repos or when pushing tags etc.
Diffstat:
M example_post-receive.sh | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git 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
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.