summaryrefslogtreecommitdiff
path: root/Documentation/config/branch.txt
diff options
context:
space:
mode:
authorLibravatar Derrick Stolee <dstolee@microsoft.com>2021-12-06 14:10:36 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-12-06 09:24:53 -0800
commit1b38efc7a03d149b030154116172c25effde8f50 (patch)
tree8b7dace5317bdec1629e1bc3dc46fa31b7b757f2 /Documentation/config/branch.txt
parentGit 2.34.1 (diff)
downloadtgif-1b38efc7a03d149b030154116172c25effde8f50.tar.xz
t1092: add deeper changes during a checkout
Extend the repository data in the setup of t1092 to include more directories within two parent directories. This reproduces a bug found by users of the sparse index feature with suitably-complicated sparse-checkout definitions. Add a failing test that fails in its first 'git checkout deepest' run in the sparse index case with this error: error: Your local changes to the following files would be overwritten by checkout: deep/deeper1/deepest2/a deep/deeper1/deepest3/a Please commit your changes or stash them before you switch branches. Aborting The next change will fix this error, and that fix will make it clear why the extra depth is necessary for revealing this bug. The assignment of the sparse-checkout definition to include deep/deeper1/deepest as a sibling directory is important to ensure that deep/deeper1 is not a sparse directory entry, but deep/deeper1/deepest2 is. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config/branch.txt')
0 files changed, 0 insertions, 0 deletions