summaryrefslogtreecommitdiff
path: root/t/t6040-tracking-info.sh
diff options
context:
space:
mode:
authorLibravatar Jonathan Tan <jonathantanmy@google.com>2022-01-21 09:44:41 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-21 12:37:36 -0800
commit7f44842ac198c8fbf76c513cb69b66bdc54d59e8 (patch)
tree80f505553137095d315102ec437d372a3b297382 /t/t6040-tracking-info.sh
parentGit 2.34.1 (diff)
downloadtgif-7f44842ac198c8fbf76c513cb69b66bdc54d59e8.tar.xz
sparse-checkout: create leading directory
When creating the sparse-checkout file, Git does not create the leading directory, "$GIT_DIR/info", if it does not exist. This causes problems if the repository does not have that directory. Therefore, ensure that the leading directory is created. This is the only "open" in builtin/sparse-checkout.c that does not have a leading directory check. (The other one in write_patterns_and_update() does.) Note that the test needs to explicitly specify a template when running "git init" because the default template used in the tests has the "info/" directory included. Helped-by: Jose Lopes <jabolopes@google.com> Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6040-tracking-info.sh')
0 files changed, 0 insertions, 0 deletions