aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorJiang Xin <zhiyou.jx@alibaba-inc.com>2022-11-29 21:15:09 +0800
committerJunio C Hamano <gitster@pobox.com>2022-11-30 10:21:50 +0900
commita0883a2440903bcfcb6b0f0c9d0439168258e819 (patch)
treeeb3b7e902930d8f850c988e98ac073c3866d84b5 /commit-graph.c
parentDownmerge a bit more for 2.38.2 (diff)
downloadgit-a0883a2440903bcfcb6b0f0c9d0439168258e819.tar.gz
git-a0883a2440903bcfcb6b0f0c9d0439168258e819.zip
t1301: fix wrong template dir for git-init
The template dir prepared in test case "forced modes" is not used as expected because a wrong template dir is provided to "git init". This is because the $CWD for "git-init" command is a sibling directory alongside the template directory. Change it to the right template directory and add a protection test using "test_path_is_file". The wrong template directory was introduced by mistake in commit e1df7fe43f (init: make --template path relative to $CWD, 2019-05-10). Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions