X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=revision.c;h=07cc86ffcfac577e05aeafefe31e6b5b902b0a6e;hb=22c31bf183bff576c7807f9d67abfc11ee8e1fa4;hp=558ed01a5172d07c3af55ae2279d01bb0d6a5223;hpb=be7db6e574b95c70ac544c78d74fdeea0fb4058d;p=git.git diff --git a/revision.c b/revision.c index 558ed01a..07cc86ff 100644 --- a/revision.c +++ b/revision.c @@ -787,7 +787,10 @@ struct commit *get_revision(struct rev_info *revs) * that we'd otherwise have done in limit_list(). */ if (!revs->limited) { - if (revs->max_age != -1 && (commit->date < revs->max_age)) + if ((revs->unpacked && + has_sha1_pack(commit->object.sha1)) || + (revs->max_age != -1 && + (commit->date < revs->max_age))) continue; add_parents_to_list(revs, commit, &revs->commits); }