status: update short status to respect --no-ahead-behind
[gitweb.git] / t / t6133-pathspec-rev-dwim.sh
index 8e5b338633e487e2d7e514f3726b3b31f92d502c..a290ffca0d68dacf5204f4349e473bbbc26efd2f 100755 (executable)
@@ -35,4 +35,14 @@ test_expect_success '@{foo} with metacharacters dwims to rev' '
        test_cmp expect actual
 '
 
+test_expect_success ':/*.t from a subdir dwims to a pathspec' '
+       mkdir subdir &&
+       (
+               cd subdir &&
+               git log -- ":/*.t" >expect &&
+               git log    ":/*.t" >actual &&
+               test_cmp expect actual
+       )
+'
+
 test_done