determine_haiku_revision: Properly get rid of the commit hash.

Change-Id: I3f57b1cd4d819e7f531001d747bf7b103954a918
Reviewed-on: https://review.haiku-os.org/581
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
waddlesplash
2018-09-18 19:50:52 +00:00
parent de777b79eb
commit 2d9270e859
+1 -1
View File
@@ -37,7 +37,7 @@ if [ -z "$revision" -o "$lastBuiltRevision" != "$localRev" ]; then
exit 1
fi
revision=`echo $revision | sed 's/-g.....//' | sed 's/-/+/g'`
revision=`echo $revision | sed 's/-g[0-9a-z]\+//' | sed 's/-/+/g'`
if echo "$revision" | grep -- '-' >/dev/null; then
# HEAD is not directly a changeset from Haiku's central repo, so we
# add the current branch name as additional info