diff options
| author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2026-04-26 14:38:32 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-04-27 14:50:53 +0900 |
| commit | 59227c0e27b527062440200c074f63ee40fb7bf4 (patch) | |
| tree | 6527de849ea9e962a59cf64641106297bf3f13d0 /git-commit-script | |
| parent | 5fe676f44823dce11011b9b3b2214824a876eba4 (diff) | |
t1305: use `--git-dir=.` for bare repo in include cycle test
Earlier tests in t1305 overwrite `$HOME/.gitconfig` with their own
content as part of testing config includes. This clobbers the
`safe.bareRepository=all` entry that test-lib.sh writes when
`WITH_BREAKING_CHANGES` is in effect, causing `git -C cycle config`
to fail with "not in a git directory" when it tries to access the
bare repository created by `git init --bare cycle`.
Use `--git-dir=.` to access the bare repo explicitly, avoiding the
dependency on global config for repository discovery.
Assisted-by: Claude Opus 4.6
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions
