aboutsummaryrefslogtreecommitdiff
path: root/pdksh/pdkshrc.d/prompt.pdksh
diff options
context:
space:
mode:
Diffstat (limited to 'pdksh/pdkshrc.d/prompt.pdksh')
-rw-r--r--pdksh/pdkshrc.d/prompt.pdksh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdksh/pdkshrc.d/prompt.pdksh b/pdksh/pdkshrc.d/prompt.pdksh
index 7e6dd8fe..c446d3fe 100644
--- a/pdksh/pdkshrc.d/prompt.pdksh
+++ b/pdksh/pdkshrc.d/prompt.pdksh
@@ -93,7 +93,7 @@ prompt() {
[[ $iswt = true ]] || return
# Refresh index so e.g. git-diff-files(1) is accurate
- git update-index --refresh >/dev/null
+ git update-index --refresh >/dev/null 2>&1
# Find a local branch, remote branch, or tag (annotated or not), or
# failing all of that just show the short commit ID, in that order