summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40a1046)
raw | patch | inline | side by side (parent: 40a1046)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 23 Oct 2005 10:02:18 +0000 (03:02 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 24 Oct 2005 22:13:38 +0000 (15:13 -0700) |
The code to check if we have the object the other side has was bogus
(my fault).
Signed-off-by: Junio C Hamano <junkio@cox.net>
(my fault).
Signed-off-by: Junio C Hamano <junkio@cox.net>
upload-pack.c | patch | blob | history |
diff --git a/upload-pack.c b/upload-pack.c
index c3abf7ba659b9f4957740486b8bb7aca5b1c8471..25a343eccb5a0757c26caecdb471852d0ebac8d2 100644 (file)
--- a/upload-pack.c
+++ b/upload-pack.c
return 0;
if (nr_has < MAX_HAS) {
struct object *o = lookup_object(sha1);
- if (!o || (!o->parsed && !parse_object(sha1)))
+ if (!(o && o->parsed))
+ o = parse_object(sha1);
+ if (!o)
die("oops (%s)", sha1_to_hex(sha1));
if (o->type == commit_type) {
struct commit_list *parents;