Skip to content

Commit 2a0dc0c

Browse files
author
Jonathan Dahan
committed
Hide non-symbolic-ref HEAD, fixes #268
1 parent 3c66f64 commit 2a0dc0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/geometry_git.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ geometry_git_time() {
2121
}
2222

2323
geometry_git_branch() {
24-
ansi ${GEOMETRY_GIT_COLOR_BRANCH:-242} $(git symbolic-ref --short HEAD || git rev-parse --short HEAD)
24+
ansi ${GEOMETRY_GIT_COLOR_BRANCH:-242} $(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD)
2525
}
2626

2727
geometry_git_status() {

0 commit comments

Comments
 (0)