diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2024-04-01 11:30:33 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-04-01 08:31:54 -0700 |
| commit | 758b4e137349b8548ada07346ab82e82079b43a3 (patch) | |
| tree | 11d2efcc00d3bd961f04a9fb14c6fe19b8365236 /git.c | |
| parent | Git 2.44 (diff) | |
| download | git-758b4e137349b8548ada07346ab82e82079b43a3.tar.gz git-758b4e137349b8548ada07346ab82e82079b43a3.zip | |
completion: fix prompt with unset SHOWCONFLICTSTATE in nounset mode
`GIT_PS1_SHOWCONFLICTSTATE` is a user variable that might not be set,
causing errors when the shell is in `nounset` mode.
Take into account on access by falling back to an empty string.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions
