mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-16 02:27:03 +01:00
Apparently the issue still exists in 1.6.3.3
This commit is contained in:
parent
b74742dd92
commit
baf64a06c3
1 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ parse_git_dirty() {
|
||||||
local GIT_DIRTY=0
|
local GIT_DIRTY=0
|
||||||
# see https://github.com/robbyrussell/oh-my-zsh/commit/3c87d483628267e48fc0f462f46488dcd4f87810
|
# see https://github.com/robbyrussell/oh-my-zsh/commit/3c87d483628267e48fc0f462f46488dcd4f87810
|
||||||
# and https://github.com/robbyrussell/oh-my-zsh/issues/40
|
# and https://github.com/robbyrussell/oh-my-zsh/issues/40
|
||||||
if [[ $POST_1_6_1_GIT -gt 0 ]]; then
|
if [[ $POST_1_6_4_GIT -gt 0 ]]; then
|
||||||
[[ -n $(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null) ]] && GIT_DIRTY=1
|
[[ -n $(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null) ]] && GIT_DIRTY=1
|
||||||
else
|
else
|
||||||
[[ $((git status 2> /dev/null) | tail -n1) != "nothing to commit (working directory clean)" ]] && GIT_DIRTY=1
|
[[ $((git status 2> /dev/null) | tail -n1) != "nothing to commit (working directory clean)" ]] && GIT_DIRTY=1
|
||||||
|
|
@ -132,7 +132,7 @@ function git_compare_version() {
|
||||||
|
|
||||||
#this is unlikely to change so make it all statically assigned
|
#this is unlikely to change so make it all statically assigned
|
||||||
POST_1_7_2_GIT=$(git_compare_version "1.7.2")
|
POST_1_7_2_GIT=$(git_compare_version "1.7.2")
|
||||||
POST_1_6_1_GIT=$(git_compare_version "1.6.1")
|
POST_1_6_4_GIT=$(git_compare_version "1.6.4")
|
||||||
#clean up the namespace slightly by removing the checker function
|
#clean up the namespace slightly by removing the checker function
|
||||||
unset -f git_compare_version
|
unset -f git_compare_version
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue