Skip to content

Commit

Permalink
shallow clone: unparse and reparse an unshallowed commit
Browse files Browse the repository at this point in the history
Otherwise we would not read the real parents from the commit
object.
  • Loading branch information
Junio C Hamano committed Nov 24, 2006
1 parent c6702f4 commit 176d45c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upload-pack.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 176d45c

Please sign in to comment.