Skip to content

Commit 56f9710

Browse files
committed
tests: repair GITSENDEMAIL test on Windows
On Windows, running `git send-email --help` unhelpfully opens a browser window to an HTML version of the man page. Using '-h' avoids browser interactions, but always returns failure (1). Using --dump-aliases is used as an alternative, side effect free test.
1 parent 781f961 commit 56f9710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,5 +1325,5 @@ test_lazy_prereq QUILT '
13251325

13261326
test_lazy_prereq GITSENDEMAIL '
13271327
# test whether git send-email is available
1328-
git send-email --help 2>/dev/null >/dev/null
1328+
git send-email --dump-aliases 2>/dev/null >/dev/null
13291329
'

0 commit comments

Comments
 (0)