Skip to content

Commit 4d656bd

Browse files
author
Heikki Hulkko
committed
Fix _git_dirty so that it works with git 1.8.1.1
Since 1.8.1.1 [1] "git status" on a clean tree displays "nothing to commit, working directory clean" instead of "nothing to commit, (working directory clean)" [1] git/git@50bd8b7#L0R1050
1 parent 8007693 commit 4d656bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-sh.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ ANSI_RESET="\001$(git config --get-color "" "reset")\002"
183183

184184
# detect whether the tree is in a dirty state. returns
185185
_git_dirty() {
186-
if git status 2>/dev/null | fgrep -q '(working directory clean)'; then
186+
if git status 2>/dev/null | fgrep -q 'working directory clean'; then
187187
return 0
188188
fi
189189
local dirty_marker="`git config gitsh.dirty || echo ' *'`"

0 commit comments

Comments
 (0)