diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-12-26 03:42:04 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-12-26 03:42:04 +0100 |
commit | 4a9b839dd1166b3f205ff77e9f3ebdedb045ccba (patch) | |
tree | e90793828e50c98d238efe3c61da01e595674532 /t/t9003-help-autocorrect.sh | |
parent | The first batch for 2.40 (diff) | |
parent | help.c: fix autocorrect in work tree for bare repository (diff) | |
download | git-4a9b839dd1166b3f205ff77e9f3ebdedb045ccba.tar.xz git-4a9b839dd1166b3f205ff77e9f3ebdedb045ccba.zip |
Merge branch 'sg/help-autocorrect-config-fix'
The code to auto-correct a misspelt subcommand unnecessarily called
into git_default_config() from the early config codepath, which was
a no-no. This has bee corrected.
* sg/help-autocorrect-config-fix:
help.c: fix autocorrect in work tree for bare repository
Diffstat (limited to 't/t9003-help-autocorrect.sh')
-rwxr-xr-x | t/t9003-help-autocorrect.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t9003-help-autocorrect.sh b/t/t9003-help-autocorrect.sh index 4b9cb4c942..14a704d0a8 100755 --- a/t/t9003-help-autocorrect.sh +++ b/t/t9003-help-autocorrect.sh @@ -62,4 +62,10 @@ test_expect_success 'autocorrect can be declined altogether' ' test_line_count = 1 actual ' +test_expect_success 'autocorrect works in work tree created from bare repo' ' + git clone --bare . bare.git && + git -C bare.git worktree add ../worktree && + git -C worktree -c help.autocorrect=immediate stauts +' + test_done |