git-query

git data extraction tool using c and libgit2

git clone https://9o.is/git/git-query.git

commit a515c220c766c3e764fc5b3a2615649ccaa9b972
parent 443ec3a8920e374095432a7bc1ced393d7be26fc
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed,  9 Aug 2017 18:52:53 +0200

ignore object 0000000000000000000000000000000000000000

remote: fatal: bad object 0000000000000000000000000000000000000000

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

Diffstat:
Mexample_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