]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0060-path-utils.sh
Introduce the function strip_path_suffix()
[thirdparty/git.git] / t / t0060-path-utils.sh
index 4ed1f0b4dde45e679c04df4b3d833982a0a5b74c..8336114f9820aa5972d38efe316de7d9e39bcc5c 100755 (executable)
@@ -85,4 +85,8 @@ ancestor /foo/bar :://foo/.:: 4
 ancestor /foo/bar //foo/./::/bar 4
 ancestor /foo/bar ::/bar -1
 
+test_expect_success 'strip_path_suffix' '
+       test c:/msysgit = $(test-path-utils strip_path_suffix \
+               c:/msysgit/libexec//git-core libexec/git-core)
+'
 test_done