diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-08-24 12:18:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-24 12:18:02 -0700 |
commit | b7fcd007153b5021ed70ddc0a224127f14601bbc (patch) | |
tree | 5596bb4cd891229cc1a35399dbd0cc4b509d6833 /upload-pack.c | |
parent | 8d9185bc12650a9839dff45a8754f05618cdb3f5 (diff) | |
parent | ccef6048cd697063967e5e02937911fd8125b364 (diff) | |
download | git-b7fcd007153b5021ed70ddc0a224127f14601bbc.tar.gz |
Sync with 1.7.6.1
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'upload-pack.c')
-rw-r--r-- | upload-pack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/upload-pack.c b/upload-pack.c index 6420918abe..8739bfacdf 100644 --- 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); |