diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-01-24 00:52:28 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-01-24 00:52:28 +0300 |
commit | e86e2b8e8e7652077d004ebb6a2b4cc1c8e91301 (patch) | |
tree | 64b78e2a6b2dc96ff26aa23a43fce224dcb768d8 /t/t0035-safe-bare-repository.sh | |
parent | 1d5baf3aeda5377d3d79e580da327969a1b3b572 (diff) | |
parent | 45bb91624804d3e3a70cfc1ba0eae5577f81fc38 (diff) |
Merge branch 'kl/allow-working-in-dot-git-in-non-bare-repository' into seenseen
Loosen "disable repository discovery of a bare repository" check,
triggered by setting safe.bareRepository configuration variable to
'explicit', to exclude the ".git/" directory inside a non-bare
repository from the check.
Comments?
* kl/allow-working-in-dot-git-in-non-bare-repository:
setup: allow cwd=.git w/ bareRepository=explicit
Diffstat (limited to 't/t0035-safe-bare-repository.sh')
-rwxr-xr-x | t/t0035-safe-bare-repository.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t0035-safe-bare-repository.sh b/t/t0035-safe-bare-repository.sh index 038b8b788d..8048856379 100755 --- a/t/t0035-safe-bare-repository.sh +++ b/t/t0035-safe-bare-repository.sh @@ -78,4 +78,12 @@ test_expect_success 'no trace when GIT_DIR is explicitly provided' ' expect_accepted_explicit "$pwd/outer-repo/bare-repo" ' +test_expect_success 'no trace when "bare repository" is .git' ' + expect_accepted_implicit -C outer-repo/.git +' + +test_expect_success 'no trace when "bare repository" is a subdir of .git' ' + expect_accepted_implicit -C outer-repo/.git/objects +' + test_done |