Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'bk/ancestry-path' into maint
[gitweb.git]
/
upload-pack.c
diff --git
a/upload-pack.c
b/upload-pack.c
index 6420918abea3a9a33ad967d263153e4548daab29..8739bfacdfd4e01e16a614dd419388fa93a904b6 100644
(file)
--- a/
upload-pack.c
+++ b/
upload-pack.c
@@
-533,6
+533,8
@@
static void check_non_tip(void)
namebuf[41] = '\n';
for (i = get_max_object_index(); 0 < i; ) {
o = get_indexed_object(--i);
+ if (!o)
+ continue;
if (!(o->flags & OUR_REF))
continue;
memcpy(namebuf + 1, sha1_to_hex(o->sha1), 40);