Skip to content

Commit 39f4919

Browse files
nasamuffingitster
authored andcommitted
help: add shell-path to --build-options
It may be useful to know which shell Git was built to try to point to, in the event that shell-based Git commands are failing. $SHELL_PATH is set during the build and used to launch the manpage viewer, as well as by git-compat-util.h, and it's used during tests. 'git version --build-options' is encouraged for use in bug reports, so it makes sense to include this information there. Signed-off-by: Emily Shaffer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 788a776 commit 39f4919

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

help.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ void get_version_info(struct strbuf *buf, int show_build_options)
641641
strbuf_addstr(buf, "no commit associated with this build\n");
642642
strbuf_addf(buf, "sizeof-long: %d\n", (int)sizeof(long));
643643
strbuf_addf(buf, "sizeof-size_t: %d\n", (int)sizeof(size_t));
644+
strbuf_addf(buf, "shell-path: %s\n", SHELL_PATH);
644645
/* NEEDSWORK: also save and output GIT-BUILD_OPTIONS? */
645646
}
646647
}

0 commit comments

Comments
 (0)