From: Pat Thoyts <hidden> Date: 2016-06-15 22:52:16
This collects some recent patches from the msysGit tree that clear up
test issues on Windows.
This second version incorporates suggestions received from round 1 to:
avoid duplicating code in t9901 web-browse tests
drop the t1402 changes in favour of another change from J6t (on pu)
test for the presence of 'bcomp' in bc3 mergetool
Johannes Schindelin (3):
t1020: disable the pwd test on MinGW
t9001: do not fail only due to CR/LF issues
t9300: do not run --cat-blob-fd related tests on MinGW
Pat Thoyts (3):
t9901: fix line-ending dependency on windows
mergetools: use the correct tool for Beyond Compare 3 on Windows
mingw: ensure sockets are initialized before calling gethostname
Sebastian Schuberth (1):
git-svn: On MSYS, escape and quote SVN_SSH also if set by the user
compat/mingw.c | 7 +++++++
compat/mingw.h | 3 +++
git-svn.perl | 15 +++++++--------
mergetools/bc3 | 7 ++++++-
t/t1020-subdirectory.sh | 2 +-
t/t9001-send-email.sh | 1 +
t/t9300-fast-import.sh | 8 ++++----
t/t9901-git-web--browse.sh | 32 +++++++++++++++++---------------
8 files changed, 46 insertions(+), 29 deletions(-)
--
1.7.7.1.gbba15
From: Pat Thoyts <hidden> Date: 2016-06-15 22:52:16
From: Johannes Schindelin <redacted>
As diagnosed by Johannes Sixt, msys.dll does not hand through file
descriptors > 2 to child processes, so these test cases cannot passes when
run through an MSys bash.
Signed-off-by: Johannes Schindelin <redacted>
---
t/t9300-fast-import.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
@@ -2237,7 +2237,7 @@ test_expect_success 'R: cat-blob-fd must be a nonnegative integer' 'test_must_failgitfast-import--cat-blob-fd=-1</dev/null'-test_expect_success'R: print old blob''+test_expect_successNOT_MINGW'R: print old blob''blob=$(echo"yes it can"|githash-object-w--stdin)&&cat>expect<<-EOF&&${blob}blob11
@@ -2249,7 +2249,7 @@ test_expect_success 'R: print old blob' 'test_cmpexpectactual'-test_expect_success'R: in-stream cat-blob-fd not respected''+test_expect_successNOT_MINGW'R: in-stream cat-blob-fd not respected''echohello>greeting&&blob=$(githash-object-wgreeting)&&cat>expect<<-EOF&&
@@ -2270,7 +2270,7 @@ test_expect_success 'R: in-stream cat-blob-fd not respected' 'test_cmpexpectactual.1'-test_expect_success'R: print new blob''+test_expect_successNOT_MINGW'R: print new blob''blob=$(echo"yep yep yep"|githash-object--stdin)&&cat>expect<<-EOF&&${blob}blob12
@@ -2288,7 +2288,7 @@ test_expect_success 'R: print new blob' 'test_cmpexpectactual'-test_expect_success'R: print new blob by sha1''+test_expect_successNOT_MINGW'R: print new blob by sha1''blob=$(echo"a new blob named by sha1"|githash-object--stdin)&&cat>expect<<-EOF&&${blob}blob25
@@ -7,31 +7,35 @@ This test checks that git web--browse can handle various valid URLs.' ../test-lib.sh+test_web_browse(){+# browser=$1 url=$2+gitweb--browse--browser="$1""$2">actual&&+tr-d'\015'<actual>text&&+test_cmpexpecttext+}+ test_expect_success\'URL with an ampersand in it''echohttp://example.com/foo\&bar>expect&&gitconfigbrowser.custom.cmdecho&&-gitweb--browse--browser=custom\-http://example.com/foo\&bar>actual&&-test_cmpexpectactual+test_web_browsecustom\+http://example.com/foo\&bar' test_expect_success\'URL with a semi-colon in it''echohttp://example.com/foo\;bar>expect&&gitconfigbrowser.custom.cmdecho&&-gitweb--browse--browser=custom\-http://example.com/foo\;bar>actual&&-test_cmpexpectactual+test_web_browsecustom\+http://example.com/foo\;bar' test_expect_success\'URL with a hash in it''echohttp://example.com/foo#bar>expect&&gitconfigbrowser.custom.cmdecho&&-gitweb--browse--browser=custom\-http://example.com/foo#bar>actual&&-test_cmpexpectactual+test_web_browsecustom\+http://example.com/foo#bar' test_expect_success\
From: Pat Thoyts <hidden> Date: 2016-06-15 22:52:16
On Windows the bcompare tool launches a graphical program and does
not wait for it to terminate. A separate 'bcomp' tool is provided which
will wait for the view to exit so we use this instead.
Reported-by: Werner BEROUX <redacted>
Signed-off-by: Pat Thoyts <redacted>
---
mergetools/bc3 | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
From: Pat Thoyts <hidden> Date: 2016-06-15 22:52:16
From: Johannes Schindelin <redacted>
It fails both for line ending and for DOS path reasons.
Signed-off-by: Johannes Schindelin <redacted>
---
t/t1020-subdirectory.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
From: Pat Thoyts <hidden> Date: 2016-06-15 22:52:16
If the Windows sockets subsystem has not been initialized yet then an
attempt to get the hostname returns an error and prints a warning to the
console. This solves this issue for msysGit as seen with 'git fetch'.
Signed-off-by: Pat Thoyts <redacted>
---
compat/mingw.c | 7 +++++++
compat/mingw.h | 3 +++
2 files changed, 10 insertions(+), 0 deletions(-)
From: Pat Thoyts <hidden> Date: 2016-06-15 22:52:16
From: Sebastian Schuberth <redacted>
While GIT_SSH does not require any escaping / quoting (e.g. for paths
containing spaces), SVN_SSH requires it due to its use in a Perl script.
Previously, SVN_SSH has only been escaped and quoted automatically if it
was unset and thus derived from GIT_SSH. For user convenience, do the
escaping and quoting also for a SVN_SSH set by the user. This way, the
user is able to use the same unescaped and unquoted syntax for GIT_SSH
and SVN_SSH.
Signed-off-by: Sebastian Schuberth <redacted>
---
git-svn.perl | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)