Skip to content

Commit 3a98d12

Browse files
author
Jonathan Dahan
authored
Merge pull request #297 from tanyaionova/main
Fix whitespace escape in git_status
2 parents 83e91b9 + 23b595f commit 3a98d12

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
@@ -29,7 +29,7 @@ geometry_git_status() {
2929
command git rev-parse --git-dir > /dev/null 2>&1 || return
3030

3131
[[ -z "$(git status --porcelain --ignore-submodules HEAD)" ]] \
32-
&& [[ -z "$(git ls-files --others --modified --exclude-standard $(git rev-parse --show-toplevel))" ]] \
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)