pathspec: make --literal-pathspecs disable pathspec magic
[gitweb.git] / t / t6130-pathspec-noglob.sh
index 49c148e17efab0bc512ca09ec4a37a448f8ec1a6..8551b026de40c5e0a4be4259f20cec92c1a6ba3b 100755 (executable)
@@ -77,6 +77,12 @@ test_expect_success 'no-glob option matches literally (bracket)' '
        test_cmp expect actual
 '
 
+test_expect_success 'no-glob option disables :(literal)' '
+       : >expect &&
+       git --literal-pathspecs log --format=%s -- ":(literal)foo" >actual &&
+       test_cmp expect actual
+'
+
 test_expect_success 'no-glob environment variable works' '
        echo star >expect &&
        GIT_LITERAL_PATHSPECS=1 git log --format=%s -- "f*" >actual &&