diff options
| author | Matt Hunter <m@lfurio.us> | 2026-05-06 04:01:08 -0400 |
|---|---|---|
| committer | Matt Hunter <m@lfurio.us> | 2026-05-08 03:53:48 -0400 |
| commit | f6828ce72ccf6b17220da77177a2015cec770523 (patch) | |
| tree | df7212b7572a545b9666928c37fdb1daf8b6e6a7 | |
| parent | b9ceda00064d7b93ee05702c2a1fa6858b079c07 (diff) | |
| download | git-sonar-f6828ce72ccf6b17220da77177a2015cec770523.tar.gz git-sonar-f6828ce72ccf6b17220da77177a2015cec770523.zip | |
Remove unneeded option --symbolic-full-name for upstream_name
Signed-off-by: Matt Hunter <m@lfurio.us>
Diffstat (limited to '')
| -rwxr-xr-x | git-sonar | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ PROMPT_COLOR="${GIT_SONAR_PROMPT_COLOR:-"$COLOR_GRAY"}" PROMPT_FORMAT="${GIT_SONAR_PROMPT_FORMAT:-" ${PROMPT_COLOR}git:(${COLOR_DEF}%{alert}%{remote: }%{branch}%{ :local}${PROMPT_COLOR})${COLOR_DEF}%{ :stash}%{ :status}"}" # Gather information about the current git branch. -upstream_name="$(git rev-parse --abbrev-ref --symbolic-full-name '@{upstream}' 2>/dev/null)" +upstream_name="$(git rev-parse --abbrev-ref '@{upstream}' 2>/dev/null)" branch_name="$(git symbolic-ref --short HEAD 2>/dev/null)" commit_hash="$(git rev-parse --short HEAD 2>/dev/null)" |
