diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-10-26 03:11:44 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-26 03:11:44 +0300 |
commit | 777f548b5a9e409b4c936a32a2cb61fd7a1bb45c (patch) | |
tree | 52dc51c3b3eb922d52ad5f1c08cde3f62ff27745 /t/t0033-safe-directory.sh | |
parent | b988427918c767fc7782a387c9c8de9e147b983d (diff) | |
parent | ecec57b3c9731cf81cd1b9d515334168c2c68f5b (diff) |
Merge branch 'gc/bare-repo-discovery'
Allow configuration files in "protected" scopes to include other
configuration files.
* gc/bare-repo-discovery:
config: respect includes in protected config
Diffstat (limited to 't/t0033-safe-directory.sh')
-rwxr-xr-x | t/t0033-safe-directory.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t0033-safe-directory.sh b/t/t0033-safe-directory.sh index aecb308cf6..dc3496897a 100755 --- a/t/t0033-safe-directory.sh +++ b/t/t0033-safe-directory.sh @@ -71,4 +71,13 @@ test_expect_success 'safe.directory=*, but is reset' ' expect_rejected_dir ' +test_expect_success 'safe.directory in included file' ' + cat >gitconfig-include <<-EOF && + [safe] + directory = "$(pwd)" + EOF + git config --global --add include.path "$(pwd)/gitconfig-include" && + git status +' + test_done |