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.
git
1 parent 1f47617 commit 84770f8Copy full SHA for 84770f8
base/version_git.sh
@@ -39,7 +39,7 @@ if [ -n "$(git status --porcelain)" ]; then
39
# append dirty mark '*' if the repository has uncommitted changes
40
commit_short="$commit_short"*
41
fi
42
-branch=$(git branch | sed -n '/\* /s///p')
+branch=$(git rev-parse --abbrev-ref HEAD)
43
44
topdir=$(git rev-parse --show-toplevel)
45
verchanged=$(git blame -L ,1 -sl -- "$topdir/VERSION" | cut -f 1 -d " ")
0 commit comments