Skip to content

Commit 24f1136

Browse files
jrngitster
authored andcommitted
t9010 (svn-fe): use Unix-style path in URI
Ever since v1.6.3-rc0~101^2~14 (Tests on Windows: $(pwd) must return Windows-style paths, 2009-03-13), there is a subtle difference between $(pwd) and $PWD in tests: the former returns Windows-style paths as might be output by git and the latter Unix-style paths which msys programs tend to prefer. In file:// URIs, Unix-style paths are needed. Before: “svn export” declares it cannot find file://c:/apps/git/git/t/trash directory/simple-svco After: “svn export” successfully finds file:///c/apps/git/git/... Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6117aba commit 24f1136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9010-svn-fe.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test_dump() {
1010
test_expect_success "$dump" '
1111
svnadmin create "$label-svn" &&
1212
svnadmin load "$label-svn" < "$TEST_DIRECTORY/$dump" &&
13-
svn_cmd export "file://$(pwd)/$label-svn" "$label-svnco" &&
13+
svn_cmd export "file://$PWD/$label-svn" "$label-svnco" &&
1414
git init "$label-git" &&
1515
test-svn-fe "$TEST_DIRECTORY/$dump" >"$label.fe" &&
1616
(

0 commit comments

Comments
 (0)