aboutsummaryrefslogtreecommitdiff
path: root/pdksh
diff options
context:
space:
mode:
Diffstat (limited to '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 8504153c..15db69cb 100644
--- a/pdksh/pdkshrc.d/prompt.pdksh
+++ b/pdksh/pdkshrc.d/prompt.pdksh
@@ -123,7 +123,7 @@ prompt() {
state=${state}'!!'
# Changes are staged
- git diff-index --cached --quiet HEAD ||
+ git diff-index --cached --quiet HEAD 2>/dev/null ||
state=${state}'+'
# There are some untracked and unignored files