projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.17.0
[platform/upstream/git.git]
/
t
/
t0060-path-utils.sh
diff --git
a/t/t0060-path-utils.sh
b/t/t0060-path-utils.sh
index
40db3e1
..
7ea2bb5
100755
(executable)
--- a/
t/t0060-path-utils.sh
+++ b/
t/t0060-path-utils.sh
@@
-165,15
+165,6
@@
test_expect_success 'absolute path rejects the empty string' '
test_must_fail test-path-utils absolute_path ""
'
test_must_fail test-path-utils absolute_path ""
'
-test_expect_success MINGW '<drive-letter>:\\abc is an absolute path' '
- for letter in : \" C Z 1 รค
- do
- path=$letter:\\abc &&
- absolute="$(test-path-utils absolute_path "$path")" &&
- test "$path" = "$absolute" || return 1
- done
-'
-
test_expect_success 'real path rejects the empty string' '
test_must_fail test-path-utils real_path ""
'
test_expect_success 'real path rejects the empty string' '
test_must_fail test-path-utils real_path ""
'
@@
-358,111
+349,4
@@
test_submodule_relative_url "(null)" "ssh://hostname:22/repo" "../subrepo" "ssh:
test_submodule_relative_url "(null)" "user@host:path/to/repo" "../subrepo" "user@host:path/to/subrepo"
test_submodule_relative_url "(null)" "user@host:repo" "../subrepo" "user@host:subrepo"
test_submodule_relative_url "(null)" "user@host:path/to/repo" "../subrepo" "user@host:path/to/subrepo"
test_submodule_relative_url "(null)" "user@host:repo" "../subrepo" "user@host:subrepo"
-test_expect_success 'match .gitmodules' '
- test-path-utils is_dotgitmodules \
- .gitmodules \
- \
- .git${u200c}modules \
- \
- .Gitmodules \
- .gitmoduleS \
- \
- ".gitmodules " \
- ".gitmodules." \
- ".gitmodules " \
- ".gitmodules. " \
- ".gitmodules ." \
- ".gitmodules.." \
- ".gitmodules " \
- ".gitmodules. " \
- ".gitmodules . " \
- ".gitmodules ." \
- \
- ".Gitmodules " \
- ".Gitmodules." \
- ".Gitmodules " \
- ".Gitmodules. " \
- ".Gitmodules ." \
- ".Gitmodules.." \
- ".Gitmodules " \
- ".Gitmodules. " \
- ".Gitmodules . " \
- ".Gitmodules ." \
- \
- GITMOD~1 \
- gitmod~1 \
- GITMOD~2 \
- gitmod~3 \
- GITMOD~4 \
- \
- "GITMOD~1 " \
- "gitmod~2." \
- "GITMOD~3 " \
- "gitmod~4. " \
- "GITMOD~1 ." \
- "gitmod~2 " \
- "GITMOD~3. " \
- "gitmod~4 . " \
- \
- GI7EBA~1 \
- gi7eba~9 \
- \
- GI7EB~10 \
- GI7EB~11 \
- GI7EB~99 \
- GI7EB~10 \
- GI7E~100 \
- GI7E~101 \
- GI7E~999 \
- ~1000000 \
- ~9999999 \
- \
- .gitmodules:\$DATA \
- "gitmod~4 . :\$DATA" \
- \
- --not \
- ".gitmodules x" \
- ".gitmodules .x" \
- \
- " .gitmodules" \
- \
- ..gitmodules \
- \
- gitmodules \
- \
- .gitmodule \
- \
- ".gitmodules x " \
- ".gitmodules .x" \
- \
- GI7EBA~ \
- GI7EBA~0 \
- GI7EBA~~1 \
- GI7EBA~X \
- Gx7EBA~1 \
- GI7EBX~1 \
- \
- GI7EB~1 \
- GI7EB~01 \
- GI7EB~1X \
- \
- .gitmodules,:\$DATA
-'
-
-test_expect_success MINGW 'is_valid_path() on Windows' '
- test-path-utils is_valid_path \
- win32 \
- "win32 x" \
- ../hello.txt \
- C:\\git \
- \
- --not \
- "win32 " \
- "win32 /x " \
- "win32." \
- "win32 . ." \
- .../hello.txt \
- colon:test
-'
-
test_done
test_done