Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pack-objects: allow --shallow and --path-walk
There does not appear to be anything particularly incompatible about the --shallow and --path-walk options of 'git pack-objects'. If shallow commits are to be handled differently, then it is by the revision walk that defines the commit set and which are interesting or uninteresting. However, before the previous change, a trivial removal of the warning would cause a failure in t5500-fetch-pack.sh when GIT_TEST_PACK_PATH_WALK is enabled. The shallow fetch would provide more objets than we desired, due to some incorrect behavior of the path-walk API, especially around walking unintersting objects. Now that these things were fixed, we can make this change. Further, we can add a test to show that the Git client is similarly careful about selecting the right objects during 'git push' from a shallow clone. Signed-off-by: Derrick Stolee <stolee@gmail.com>
- Loading branch information