diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-12-06 14:10:36 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-06 09:24:53 -0800 |
commit | 1b38efc7a03d149b030154116172c25effde8f50 (patch) | |
tree | 8b7dace5317bdec1629e1bc3dc46fa31b7b757f2 /tag.c | |
parent | Git 2.34.1 (diff) | |
download | tgif-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 'tag.c')
0 files changed, 0 insertions, 0 deletions