summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2005-08-12 03:17:55 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-12 05:08:29 (GMT)
commit0d62fb5672c7b6e3fc6c5418d61ff39bf6034741 (patch)
tree6464856bcb21d5f99942f379c12934e1cdc779d5
parentf88fcf8bab6a3dcd1255bc64f50235c745458962 (diff)
downloadgit-0d62fb5672c7b6e3fc6c5418d61ff39bf6034741.zip
git-0d62fb5672c7b6e3fc6c5418d61ff39bf6034741.tar.gz
git-0d62fb5672c7b6e3fc6c5418d61ff39bf6034741.tar.bz2
[PATCH] Also parse objects we already have
In the case where we don't know from context what type an object is, but we don't have to fetch it, we need to parse it to determine the type before processing it. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--pull.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pull.c b/pull.c
index cf3ec73..e7bf83b 100644
--- a/pull.c
+++ b/pull.c
@@ -127,6 +127,7 @@ static int process(unsigned char *sha1, const char *type)
{
struct object *obj = lookup_object_type(sha1, type);
if (has_sha1_file(sha1)) {
+ parse_object(sha1);
/* We already have it, so we should scan it now. */
return process_object(obj);
}