projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6702f4
)
shallow clone: unparse and reparse an unshallowed commit
author
Junio C Hamano
<junkio@cox.net>
Tue, 14 Nov 2006 06:47:46 +0000
(22:47 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 24 Nov 2006 23:42:49 +0000
(15:42 -0800)
Otherwise we would not read the real parents from the commit
object.
upload-pack.c
patch
|
blob
|
history
diff --git
a/upload-pack.c
b/upload-pack.c
index 7e3c437d8e1eaca61ccabb29f3097ba9c5c3732e..d5b47507db3e1db394c3ce054bbd84e45c4a9574 100644
(file)
--- 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) {