Skip to content

Commit 01e8d32

Browse files
j6tgitster
authored andcommitted
t3200: do not open a HTML manual page when DEFAULT_MAN_FORMAT is html
We have the build configuration option DEFAULT_MAN_FORMAT to choose a format different from man pages to be used by 'git help' when no format is requested explicitly. Since 65db044 (Set the default help format to html for msys builds, 2013-06-04) we use html on Windows by default. There is one test in t3200-branch.sh that invokes a help page. The intent of the redirections applied to the command invocation is to avoid that the man page viewer interferes with the automated test. But when the default format is not "man", this does not have the intended effect, and the HTML manual page is opened during the test run. Request "man" format explicitly to keep the test silent. Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ca46280 commit 01e8d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t3200-branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test_expect_success 'prepare a trivial repository' '
1717
HEAD=$(git rev-parse --verify HEAD)'
1818

1919
test_expect_success 'git branch --help should not have created a bogus branch' '
20-
test_might_fail git branch --help </dev/null >/dev/null 2>/dev/null &&
20+
test_might_fail git branch --man --help </dev/null >/dev/null 2>&1 &&
2121
test_path_is_missing .git/refs/heads/--help
2222
'
2323

0 commit comments

Comments
 (0)