summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-09-03 22:23:13 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-09-03 22:23:13 -0700
commitf92d62ec4ead67109418483b65aaf158b7462121 (patch)
tree41c8b17b55ec094911c29c78a1067ba6e629daf7 /object.c
parentMerge branch 'ab/compat-regex' (diff)
parentparse_object: pass on the original sha1, not the replaced one (diff)
downloadtgif-f92d62ec4ead67109418483b65aaf158b7462121.tar.xz
Merge branch 'nd/maint-fix-replace'
* nd/maint-fix-replace: parse_object: pass on the original sha1, not the replaced one
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 277b3ddba7..7adfda75f2 100644
--- a/object.c
+++ b/object.c
@@ -199,7 +199,7 @@ struct object *parse_object(const unsigned char *sha1)
return NULL;
}
- obj = parse_object_buffer(repl, type, size, buffer, &eaten);
+ obj = parse_object_buffer(sha1, type, size, buffer, &eaten);
if (!eaten)
free(buffer);
return obj;