stagit

ignore object 0000000000000000000000000000000000000000

remote: fatal: bad object 0000000000000000000000000000000000000000

this can happen on initial repos or when pushing tags etc.

Hiltjo Posthuma contact@arjunchoudhary.com

commit: caf1e64 parent: 93d50b9
1 files changed, 2 insertions(+), 0 deletions(-)
Mexample_post-receive.sh+2-0
M · example_post-receive.sh +2, -0
1@@ -32,6 +32,8 @@ cd "${dir}" || exit 1
2 # detect git push -f
3 force=0
4 while read -r old new ref; do
5+	test "${old}" = "0000000000000000000000000000000000000000" && continue
6+
7 	hasrevs=$(git rev-list "${old}" "^${new}" | sed 1q)
8 	if test -n "${hasrevs}"; then
9 		force=1