summaryrefslogtreecommitdiff
path: root/t/t6021-merge-criss-cross.sh
diff options
context:
space:
mode:
authorLibravatar Nicolas Pitre <nico@cam.org>2009-08-24 00:04:09 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-08-24 15:03:56 -0700
commit86386829d425a3d3ae6ce713c58328607e50e523 (patch)
treec35215adc859d0f68f854fa10debf2e1ebd63e78 /t/t6021-merge-criss-cross.sh
parentChange mentions of "git programs" to "git commands" (diff)
downloadtgif-86386829d425a3d3ae6ce713c58328607e50e523.tar.xz
fix simple deepening of a repo
If all refs sent by the remote repo during a fetch are reachable locally, then no further conversation is performed with the remote. This check is skipped when the --depth argument is provided to allow the deepening of a shallow clone which corresponding remote repo has no changed. However, some additional filtering was added in commit c29727d5 to remove those refs which are equal on both sides. If the remote repo has not changed, then the list of refs to give the remote process becomes empty and simply attempting to deepen a shallow repo always fails. Let's stop being smart in that case and simply send the whole list over when that condition is met. The remote will do the right thing anyways. Test cases for this issue are also provided. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6021-merge-criss-cross.sh')
0 files changed, 0 insertions, 0 deletions