diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-06-13 23:18:46 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-13 23:18:46 +0300 |
commit | cf3269fba816d9b216b8b0d6e95ca6a345158de5 (patch) | |
tree | 9ce7316f6013088bd62ac092f8a5da6bb6767df8 /t/t0001-init.sh | |
parent | 86d2271f06382ceeb66e891eff87166d858270e1 (diff) | |
parent | e1df7fe43f4e2e607ed24668e2942d45df8d2743 (diff) |
Merge branch 'nd/init-relative-template-fix'
A relative pathname given to "git init --template=<path> <repo>"
ought to be relative to the directory "git init" gets invoked in,
but it instead was made relative to the repository, which has been
corrected.
* nd/init-relative-template-fix:
init: make --template path relative to $CWD
Diffstat (limited to 't/t0001-init.sh')
-rwxr-xr-x | t/t0001-init.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0001-init.sh b/t/t0001-init.sh index 77a224aafb..0276d14a0b 100755 --- a/t/t0001-init.sh +++ b/t/t0001-init.sh @@ -175,7 +175,7 @@ test_expect_success 'reinit' ' test_expect_success 'init with --template' ' mkdir template-source && echo content >template-source/file && - git init --template=../template-source template-custom && + git init --template=template-source template-custom && test_cmp template-source/file template-custom/.git/file ' |