summaryrefslogtreecommitdiff
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2026-04-26 14:38:33 +0000
committerJunio C Hamano <gitster@pobox.com>2026-04-27 14:50:53 +0900
commitd97f27bf01a1ba2cfa66cc8e55f03e701084240e (patch)
treefc4e131d4bfd051ddd23b5090ee4720eb3163c45 /contrib/persistent-https
parent59227c0e27b527062440200c074f63ee40fb7bf4 (diff)
t5601: restore `.gitconfig` after includeIf test
One test in t5601 overwrites `$HOME/.gitconfig` with an `includeIf` configuration snippet and removes the file in its cleanup. This destroys the `safe.bareRepository=all` entry that test-lib.sh writes when `WITH_BREAKING_CHANGES` is in effect, causing later tests that use `git -C <bare-repo> config` to fail with "not in a git directory". Back up `.gitconfig` before overwriting and restore it in the cleanup, so the global config survives into subsequent tests. 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 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions