Skip to content

Commit 9a3129a

Browse files
author
Jonathan Dahan
authored
Merge pull request #300 from geometry-zsh/frm/fix-git-dirty
Fix git status check
2 parents c152bbc + 72225bd commit 9a3129a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/geometry_git

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ geometry_git_branch() {
2828
geometry_git_status() {
2929
command git rev-parse --git-dir > /dev/null 2>&1 || return
3030

31-
[[ -z "$(git status --porcelain --ignore-submodules HEAD)" ]] \
32-
&& [[ -z "$(git ls-files --others --modified --exclude-standard \"$(git rev-parse --show-toplevel))\"" ]] \
31+
[[ -z "$(git status --porcelain --ignore-submodules)" ]] \
32+
&& [[ -z "$(git ls-files --others --modified --exclude-standard \"$(git rev-parse --show-toplevel)\")" ]] \
3333
&& ansi ${GEOMETRY_GIT_COLOR_CLEAN:-green} ${GEOMETRY_GIT_SYMBOL_CLEAN:-"⬢"} \
3434
|| ansi ${GEOMETRY_GIT_COLOR_DIRTY:-red} ${GEOMETRY_GIT_SYMBOL_DIRTY:-"⬡"}
3535
}

0 commit comments

Comments
 (0)