Skip to content

Commit 1e0473a

Browse files
committed
t1508: Be more clever than msys path substitution
A string of the form "@/abcd" is considered a file path by the msys layer and therefore translated to a windows path. Here the trick is to double the slashes. The msys patch translation can be studied with the following test program: #include <stdio.h> #include <stdlib.h> int main(int argc, char** argv) { unsigned int i; for(i=1; i < argc; i++) printf("argv[%d]=%s\n",i, argv[i]); exit(0); } Signed-off-by: Thomas Braun <[email protected]>
1 parent 0c03fcc commit 1e0473a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t1508-at-combinations.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ test_expect_success 'setup' '
3535
git checkout -b upstream-branch &&
3636
test_commit upstream-one &&
3737
test_commit upstream-two &&
38-
git checkout -b @/at-test &&
38+
git checkout -b @//at-test &&
3939
git checkout -b @@/at-test &&
4040
git checkout -b @at-test &&
4141
git checkout -b old-branch &&
@@ -64,7 +64,7 @@ check "@{-1}@{u}@{1}" commit master-one
6464
check "@" commit new-two
6565
check "@@{u}" ref refs/heads/upstream-branch
6666
check "@@/at-test" ref refs/heads/@@/at-test
67-
check "@/at-test" ref refs/heads/@/at-test
67+
check "@//at-test" ref refs/heads/@/at-test
6868
check "@at-test" ref refs/heads/@at-test
6969
nonsense "@{u}@{-1}"
7070
nonsense "@{0}@{0}"

0 commit comments

Comments
 (0)