File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 3
3
test_description=' various Windows-only path tests'
4
4
. ./test-lib.sh
5
5
6
- if ! test_have_prereq MINGW; then
6
+ if test_have_prereq CYGWIN
7
+ then
8
+ alias winpwd=' cygpath -aw .'
9
+ elif test_have_prereq MINGW
10
+ then
11
+ alias winpwd=pwd
12
+ else
7
13
skip_all=' skipping Windows-only path tests'
8
14
test_done
9
15
fi
10
16
11
- UNCPATH=" $( pwd ) "
17
+ UNCPATH=" $( winpwd ) "
12
18
case " $UNCPATH " in
13
19
[A-Z]:* )
14
20
# Use administrative share e.g. \\localhost\C$\git-sdk-64\usr\src\git
@@ -45,8 +51,8 @@ test_expect_success push '
45
51
test "$rev" = "$(git rev-parse --verify refs/heads/to-push)"
46
52
'
47
53
48
- test_expect_success ' remote nick cannot contain backslashes' '
49
- BACKSLASHED="$(pwd | tr / \\\\)" &&
54
+ test_expect_success MINGW ' remote nick cannot contain backslashes' '
55
+ BACKSLASHED="$(winpwd | tr / \\\\)" &&
50
56
git ls-remote "$BACKSLASHED" >out 2>err &&
51
57
test_i18ngrep ! "unable to access" err
52
58
'
You can’t perform that action at this time.
0 commit comments