diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-08-20 18:24:34 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-21 10:22:51 -0700 |
commit | 829a321569d8e8f2c582aef9f0c990df976ab842 (patch) | |
tree | 0a8493cc8e0ee313e35f2c4a84f30698229ffaa7 /t/t4019-diff-wserror.sh | |
parent | commit-graph: not compatible with uninitialized repo (diff) | |
download | tgif-829a321569d8e8f2c582aef9f0c990df976ab842.tar.xz |
commit-graph: close_commit_graph before shallow walk
Call close_commit_graph() when about to start a rev-list walk that
includes shallow commits. This is necessary in code paths that "fake"
shallow commits for the sake of fetch. Specifically, test 351 in
t5500-fetch-pack.sh runs
git fetch --shallow-exclude one origin
with a file-based transfer. When the "remote" has a commit-graph, we do
not prevent the commit-graph from being loaded, but then the commits are
intended to be dynamically transferred into shallow commits during
get_shallow_commits_by_rev_list(). By closing the commit-graph before
this call, we prevent this interaction.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4019-diff-wserror.sh')
0 files changed, 0 insertions, 0 deletions