Skip to content

Commit 2e8c859

Browse files
committed
Merge remote-tracking branch 'origin/devel' into devel
2 parents e7b53f5 + 5f4d3f5 commit 2e8c859

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

git-svn.perl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@
2222
$Git::SVN::Ra::_log_window_size = 100;
2323
$Git::SVN::_minimize_url = 'unset';
2424

25-
if (! exists $ENV{SVN_SSH}) {
26-
if (exists $ENV{GIT_SSH}) {
27-
$ENV{SVN_SSH} = $ENV{GIT_SSH};
28-
if ($^O eq 'msys') {
29-
$ENV{SVN_SSH} =~ s/\\/\\\\/g;
30-
$ENV{SVN_SSH} =~ s/(.*)/"$1"/;
31-
}
32-
}
25+
if (! exists $ENV{SVN_SSH} && exists $ENV{GIT_SSH}) {
26+
$ENV{SVN_SSH} = $ENV{GIT_SSH};
27+
}
28+
29+
if (exists $ENV{SVN_SSH} && $^O eq 'msys') {
30+
$ENV{SVN_SSH} =~ s/\\/\\\\/g;
31+
$ENV{SVN_SSH} =~ s/(.*)/"$1"/;
3332
}
3433

3534
$Git::SVN::Log::TZ = $ENV{TZ};

t/t9901-git-web--browse.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test_expect_success \
1212
echo http://example.com/foo\&bar >expect &&
1313
git config browser.custom.cmd echo &&
1414
git web--browse --browser=custom \
15-
http://example.com/foo\&bar >actual &&
15+
http://example.com/foo\&bar | tr -d "\r" >actual &&
1616
test_cmp expect actual
1717
'
1818

@@ -21,7 +21,7 @@ test_expect_success \
2121
echo http://example.com/foo\;bar >expect &&
2222
git config browser.custom.cmd echo &&
2323
git web--browse --browser=custom \
24-
http://example.com/foo\;bar >actual &&
24+
http://example.com/foo\;bar | tr -d "\r" >actual &&
2525
test_cmp expect actual
2626
'
2727

@@ -30,7 +30,7 @@ test_expect_success \
3030
echo http://example.com/foo#bar >expect &&
3131
git config browser.custom.cmd echo &&
3232
git web--browse --browser=custom \
33-
http://example.com/foo#bar >actual &&
33+
http://example.com/foo#bar | tr -d "\r" >actual &&
3434
test_cmp expect actual
3535
'
3636

@@ -44,7 +44,7 @@ test_expect_success \
4444
chmod +x "fake browser" &&
4545
git config browser.w3m.path "`pwd`/fake browser" &&
4646
git web--browse --browser=w3m \
47-
http://example.com/foo >actual &&
47+
http://example.com/foo | tr -d "\r" >actual &&
4848
test_cmp expect actual
4949
'
5050

@@ -59,7 +59,7 @@ test_expect_success \
5959
}
6060
f" &&
6161
git web--browse --browser=custom \
62-
http://example.com/foo >actual &&
62+
http://example.com/foo | tr -d "\r" >actual &&
6363
test_cmp expect actual
6464
'
6565

0 commit comments

Comments
 (0)