Skip to content

Commit 5d4ed3b

Browse files
committed
fixup! survey: clearly note the experimental nature in the output
This is needed to let the tests pass (which assume that the output can be completely empty). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 9378ca9 commit 5d4ed3b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

builtin/survey.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -893,9 +893,10 @@ int cmd_survey(int argc, const char **argv, const char *prefix)
893893
if (argc == 2 && !strcmp(argv[1], "-h"))
894894
usage_with_options(survey_usage, survey_options);
895895

896-
color_fprintf_ln(stderr,
897-
want_color_fd(2, GIT_COLOR_AUTO) ? GIT_COLOR_YELLOW : "",
898-
"(THIS IS EXPERIMENTAL, EXPECT THE OUTPUT FORMAT TO CHANGE!)");
896+
if (isatty(2))
897+
color_fprintf_ln(stderr,
898+
want_color_fd(2, GIT_COLOR_AUTO) ? GIT_COLOR_YELLOW : "",
899+
"(THIS IS EXPERIMENTAL, EXPECT THE OUTPUT FORMAT TO CHANGE!)");
899900

900901
ctx.repo = the_repository;
901902

0 commit comments

Comments
 (0)