diff options
author | Vaxry <[email protected]> | 2024-04-06 15:40:06 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-06 15:40:06 +0100 |
commit | 6cea710ac8e966366763b9609895dcef7fdb5bcb (patch) | |
tree | 0445c502e1e661cc9e069c50feb93b48d7677c14 /scripts | |
parent | f081a4300fc99b0bcd821a1b391364443db424cf (diff) | |
download | Hyprland-6cea710ac8e966366763b9609895dcef7fdb5bcb.tar.gz Hyprland-6cea710ac8e966366763b9609895dcef7fdb5bcb.zip |
scripts: switch to branch --show-current for branch in generateVersion
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generateVersion.sh | 2 |
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) |