Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pull.c
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2005-08-12 07:17:55 +0400
committerJunio C Hamano <junkio@cox.net>2005-08-12 09:08:29 +0400
commit0d62fb5672c7b6e3fc6c5418d61ff39bf6034741 (patch)
tree6464856bcb21d5f99942f379c12934e1cdc779d5 /pull.c
parentf88fcf8bab6a3dcd1255bc64f50235c745458962 (diff)
[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>
Diffstat (limited to 'pull.c')
-rw-r--r--pull.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pull.c b/pull.c
index cf3ec73841..e7bf83bb03 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);
}