aboutsummaryrefslogtreecommitdiff
path: root/upload-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-13 22:47:46 -0800
committerJunio C Hamano <junkio@cox.net>2006-11-24 15:42:49 -0800
commit176d45cb20eb4ffc661d73383aec01943e056e10 (patch)
treedecbac577d0a2af55b13d9396be9ce1fb6a86a4c /upload-pack.c
parentc6702f4b95699c6bd47337516c32e3408dda0595 (diff)
downloadgit-176d45cb20eb4ffc661d73383aec01943e056e10.tar.gz
git-176d45cb20eb4ffc661d73383aec01943e056e10.tar.xz
shallow clone: unparse and reparse an unshallowed commit
Otherwise we would not read the real parents from the commit object.
Diffstat (limited to 'upload-pack.c')
-rw-r--r--upload-pack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/upload-pack.c b/upload-pack.c
index 7e3c437d8..d5b47507d 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -582,6 +582,7 @@ static void receive_needs(void)
object->flags &= ~CLIENT_SHALLOW;
/* make sure the real parents are parsed */
unregister_shallow(object->sha1);
+ object->parsed = 0;
parse_commit((struct commit *)object);
parents = ((struct commit *)object)->parents;
while (parents) {