summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-05-06 04:01:08 -0400
committerMatt Hunter <m@lfurio.us>2026-05-08 03:53:48 -0400
commitf6828ce72ccf6b17220da77177a2015cec770523 (patch)
treedf7212b7572a545b9666928c37fdb1daf8b6e6a7
parentb9ceda00064d7b93ee05702c2a1fa6858b079c07 (diff)
downloadgit-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-xgit-sonar2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-sonar b/git-sonar
index 66648f3..4da43f8 100755
--- a/git-sonar
+++ b/git-sonar
@@ -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)"