diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2019-03-26 12:31:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-01 15:35:54 +0900 |
commit | 1e7d440b0a07ec8e71c107d0950ed1dc43b4d20c (patch) | |
tree | e6ece4073a5a0029860d33d740a3f84ae7311c9a /mergetools/vimdiff3 | |
parent | Merge branch 'jt/test-protocol-version' into jt/fetch-no-update-shallow-in-pr... (diff) | |
download | tgif-1e7d440b0a07ec8e71c107d0950ed1dc43b4d20c.tar.xz |
fetch-pack: call prepare_shallow_info only if v0
In fetch_pack(), be clearer that there is no shallow information before
the fetch when v2 is used - memset the struct shallow_info to 0 instead
of calling prepare_shallow_info().
This patch is in preparation for a future patch in which a v2 fetch
might call prepare_shallow_info() after shallow info has been retrieved
during the fetch, so I needed to ensure that prepare_shallow_info() is
not called before the fetch.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergetools/vimdiff3')
0 files changed, 0 insertions, 0 deletions