Skip to content

Commit 23b595f

Browse files
committed
Fix whitespace escape
In git_status, when path to git dir contains whitespace `git ls-files' receives only part of that path
1 parent b02956f commit 23b595f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/geometry_git

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ geometry_git_status() {
2323
command git rev-parse --git-dir > /dev/null 2>&1 || return
2424

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

0 commit comments

Comments
 (0)