diff options
author | Michael Allen <michael@michaelallen.io> | 2015-03-10 16:30:54 +0000 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-03-10 16:31:01 +0000 |
commit | 3306e3a3f7acaf488fa199afabcaf99ba31a2204 (patch) | |
tree | 4b59427a47106f9c1d7aed23f14f782d933c953f | |
parent | 3b90ab4e2d06c3fb1383c1aff34360e510d7a856 (diff) | |
download | git-sonar-3306e3a3f7acaf488fa199afabcaf99ba31a2204.tar.gz git-sonar-3306e3a3f7acaf488fa199afabcaf99ba31a2204.zip |
typo
-rwxr-xr-x | git-base.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-base.sh b/git-base.sh index a918a24..6d39c5a 100755 --- a/git-base.sh +++ b/git-base.sh @@ -206,7 +206,7 @@ conflicted="%{$fg_bold[yellow]%}" untracked="%{$fg_bold[white]%}" is_dirty() { - if ! git rev-parse 2>&1/dev/null; then + if ! git rev-parse 2>&1 /dev/null; then #not in repo, thus not dirty return 1 else @@ -216,9 +216,9 @@ is_dirty() { return 0 else #no untracked files - if git show HEAD -- 2>&1/dev/null; then + if git show HEAD -- 2>&1 /dev/null; then #has a commit hash, thus not on an initial commit - if ! git diff --quiet --ignore-submodules HEAD -- 2>&1/dev/null; then + if ! git diff --quiet --ignore-submodules HEAD -- 2>&1 /dev/null; then #has differences thus dirty return 0 else |