Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-12-26 05:42:04 +0300
committerJunio C Hamano <gitster@pobox.com>2022-12-26 05:42:04 +0300
commit4a9b839dd1166b3f205ff77e9f3ebdedb045ccba (patch)
treee90793828e50c98d238efe3c61da01e595674532 /t/t9003-help-autocorrect.sh
parent7c2ef319c52c4997256f5807564523dfd4acdfc7 (diff)
parent0918d0888767d42a7232b110f5ec510945256b7e (diff)
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-xt/t9003-help-autocorrect.sh6
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