We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c6b5d8 + 038e2e5 commit 8fba5f9Copy full SHA for 8fba5f9
t/t3703-add-magic-pathspec.sh
@@ -38,17 +38,17 @@ cat >expected <<EOF
38
add 'sub/foo'
39
EOF
40
41
-test_expect_success 'a file with the same (long) magic name exists' '
42
- : >":(icase)ha" &&
43
- test_must_fail git add -n ":(icase)ha" &&
44
- git add -n "./:(icase)ha"
45
-'
46
-
47
if mkdir ":" 2>/dev/null
48
then
49
test_set_prereq COLON_DIR
50
fi
51
+test_expect_success COLON_DIR 'a file with the same (long) magic name exists' '
+ : >":(icase)ha" &&
+ test_must_fail git add -n ":(icase)ha" &&
+ git add -n "./:(icase)ha"
+'
+
52
test_expect_success COLON_DIR 'a file with the same (short) magic name exists' '
53
: >":/bar" &&
54
test_must_fail git add -n :/bar &&
0 commit comments