Merge branch 'js/gitdir-at-unc-root'
[gitweb.git] / t / t9902-completion.sh
index 9e90a64830e74d4aac38e1a97c994b9bb644e06c..5d98d66dbdb1ebc427ad4ddd50c1ce058ada0aaf 100755 (executable)
@@ -1740,6 +1740,27 @@ test_expect_success 'git -c - value' '
        EOF
 '
 
+test_expect_success 'git clone --config= - section' '
+       test_completion "git clone --config=br" <<-\EOF
+       branch.Z
+       browser.Z
+       EOF
+'
+
+test_expect_success 'git clone --config= - variable name' '
+       test_completion "git clone --config=log.d" <<-\EOF
+       log.date=Z
+       log.decorate=Z
+       EOF
+'
+
+test_expect_success 'git clone --config= - value' '
+       test_completion "git clone --config=color.pager=" <<-\EOF
+       false Z
+       true Z
+       EOF
+'
+
 test_expect_success 'sourcing the completion script clears cached commands' '
        __git_compute_all_commands &&
        verbose test -n "$__git_all_commands" &&