aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-04-06 15:40:06 +0100
committerVaxry <[email protected]>2024-04-06 15:40:06 +0100
commit6cea710ac8e966366763b9609895dcef7fdb5bcb (patch)
tree0445c502e1e661cc9e069c50feb93b48d7677c14
parentf081a4300fc99b0bcd821a1b391364443db424cf (diff)
downloadHyprland-6cea710ac8e966366763b9609895dcef7fdb5bcb.tar.gz
Hyprland-6cea710ac8e966366763b9609895dcef7fdb5bcb.zip
scripts: switch to branch --show-current for branch in generateVersion
-rwxr-xr-xscripts/generateVersion.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generateVersion.sh b/scripts/generateVersion.sh
index b0993709..6b1afb7b 100755
--- a/scripts/generateVersion.sh
+++ b/scripts/generateVersion.sh
@@ -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)