mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 15:09:50 +01:00
scripts: switch to branch --show-current for branch in generateVersion
This commit is contained in:
parent
f081a4300f
commit
6cea710ac8
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
cp -fr ./src/version.h.in ./src/version.h
|
||||
|
||||
HASH=$(git rev-parse HEAD)
|
||||
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
BRANCH=$(git branch --show-current)
|
||||
MESSAGE=$(git show ${GIT_COMMIT_HASH} | head -n 5 | tail -n 1 | sed -e 's/#//g' -e 's/\"//g')
|
||||
DATE=$(git show ${GIT_COMMIT_HASH} --no-patch --format=%cd --date=local)
|
||||
DIRTY=$(git diff-index --quiet HEAD -- || echo dirty)
|
||||
|
|
Loading…
Reference in a new issue