diff options
-rw-r--r-- | upload-pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/upload-pack.c b/upload-pack.c index b6ec605b09..6152a98757 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -638,8 +638,8 @@ static void receive_needs(void) if (parse_feature_request(features, "include-tag")) use_include_tag = 1; - o = lookup_object(sha1_buf); - if (!o || !parse_object(o->sha1)) + o = parse_object(sha1_buf); + if (!o) die("git upload-pack: not our ref %s", sha1_to_hex(sha1_buf)); if (!(o->flags & WANTED)) { |