diff options
author | Emily Shaffer <emilyshaffer@google.com> | 2020-05-13 02:42:13 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-13 08:02:20 +0300 |
commit | 4a4804edf4d5f96407fc46eda802a3b29d991e33 (patch) | |
tree | 147a4c1cc84b5f59b9567af7f7d85c3a7dbbfb82 /bugreport.c | |
parent | 39f4919dc50ff05bcebd0d3c89b718aa2d46bd67 (diff) |
bugreport: include user interactive shell
It's possible a user may complain about the way that Git interacts with
their interactive shell, e.g. autocompletion or shell prompt. In that
case, it's useful for us to know which shell they're using
interactively.
Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bugreport.c')
-rw-r--r-- | bugreport.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bugreport.c b/bugreport.c index aa8a489c35..28f4568b01 100644 --- a/bugreport.c +++ b/bugreport.c @@ -9,6 +9,7 @@ static void get_system_info(struct strbuf *sys_info) { struct utsname uname_info; + char *shell = NULL; /* get git version from native cmd */ strbuf_addstr(sys_info, _("git version:\n")); @@ -29,8 +30,13 @@ static void get_system_info(struct strbuf *sys_info) strbuf_addstr(sys_info, _("compiler info: ")); get_compiler_info(sys_info); + strbuf_addstr(sys_info, _("libc info: ")); get_libc_info(sys_info); + + shell = getenv("SHELL"); + strbuf_addf(sys_info, "$SHELL (typically, interactive shell): %s\n", + shell ? shell : "<unset>"); } static void get_populated_hooks(struct strbuf *hook_info, int nongit) |