We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c66f64 commit 2a0dc0cCopy full SHA for 2a0dc0c
functions/geometry_git.zsh
@@ -21,7 +21,7 @@ geometry_git_time() {
21
}
22
23
geometry_git_branch() {
24
- ansi ${GEOMETRY_GIT_COLOR_BRANCH:-242} $(git symbolic-ref --short HEAD || git rev-parse --short HEAD)
+ ansi ${GEOMETRY_GIT_COLOR_BRANCH:-242} $(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD)
25
26
27
geometry_git_status() {
0 commit comments