diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 17:31:19 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 17:31:19 +1200 |
commit | 95554dc7862f770ee2ec26cc86e81f2d3fc66e52 (patch) | |
tree | 9db3c4602802e6485e41583e30ae03f3568695b8 /pdksh/pdkshrc.d | |
parent | Correct test written in previous commit (diff) | |
download | dotfiles-95554dc7862f770ee2ec26cc86e81f2d3fc66e52.tar.gz dotfiles-95554dc7862f770ee2ec26cc86e81f2d3fc66e52.zip |
If HEAD not set, suppress error
Diffstat (limited to 'pdksh/pdkshrc.d')
-rw-r--r-- | pdksh/pdkshrc.d/prompt.pdksh | 2 |
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 |