aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index a47fb4da27..e2bcbe8149 100644
--- a/commit.c
+++ b/commit.c
@@ -262,7 +262,11 @@ int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size)
bufptr[47] != '\n')
return error("bad parents in commit %s", sha1_to_hex(item->object.sha1));
bufptr += 48;
- if (graft)
+ /*
+ * The clone is shallow if nr_parent < 0, and we must
+ * not traverse its real parents even when we unhide them.
+ */
+ if (graft && (graft->nr_parent < 0 || grafts_replace_parents))
continue;
new_parent = lookup_commit(parent);
if (new_parent)
pan> 2007-11-20avoid "defined but not used" warning for fetch_objs_via_walkerJeff King1-0/+2 2007-11-21git-gui 0.9.0gitgui-0.9.0Shawn O. Pearce1-1/+1 2007-11-20send-email: add transfer encoding header with content-typeJeff King1-1/+2 2007-11-20git-compat-util.h: auto-adjust to compiler support of FLEX_ARRAY a bit betterJunio C Hamano1-4/+18 2007-11-20Flush progress message buffer in display().Johannes Sixt1-0/+3 2007-11-20autoconf: Add tests for memmem, strtoumax and mkdtemp functionsJakub Narebski2-0/+21 2007-11-20gitweb: Put project README in div.readme, fix its paddingJakub Narebski2-1/+7 2007-11-20gitweb: Style all tables using CSSJakub Narebski2-15/+11 2007-11-20send-email: Don't add To: recipients to the Cc: headerAsk Bjørn Hansen1-1/+5 2007-11-20Doc fix for git-reflog: mention @{...} syntax, and <ref> in synopsys.Matthieu Moy1-4/+11 2007-11-20config: clarify compression defaultsBrian Downing1-1/+5 2007-11-20config: correct core.loosecompression documentationBrian Downing1-1/+1 2007-11-19gitview: import only one of gtksourceview and gtksourceview2Anton Gyllenberg1-10/+7 2007-11-19git-send-email: show all headers when sending mailDavid D. Kilzer2-2/+39 2007-11-19Further clarify clean.requireForce changesWincent Colaiuta1-2/+3 2007-11-18Documentation: Fix references to deprecated commandsJ. Bruce Fields2-8/+3 2007-11-18Update draft release notes for 1.5.4Junio C Hamano1-1/+12 2007-11-18user-manual: mention "..." in "Generating diffs", etc.J. Bruce Fields1-4/+11 2007-11-18Draft release notes: fix clean.requireForce descriptionJunio C Hamano1-4/+4 2007-11-18user-manual: Add section "Why bisecting merge commits can be harder ..."Steffen Prohaska1-0/+66 2007-11-18GIT 1.5.3.6v1.5.3.6Junio C Hamano2-10/+6 2007-11-18Use compat mkdtemp() on Solaris boxesGuido Ostkamp1-2/+1 2007-11-17grep -An -Bm: fix invocation of external grep commandJunio C Hamano1-3/+3 2007-11-17git-remote.txt: fix example urlJ. Bruce Fields1-1/+1 2007-11-17git-svn: Fix a typo and add a comma in an error message in git-svnDavid Reiss1-1/+1 2007-11-17git-svn log: handle unreachable revisions like "svn log"David D Kilzer2-19/+110 2007-11-17git-svn log: include commit log for the smallest revision in a rangeDavid D Kilzer2-7/+7 2007-11-17git-svn log: fix ascending revision rangesDavid D Kilzer2-1/+15 2007-11-17git-svn's dcommit must use subversion's configKonstantin V. Arkhipov1-0/+3