summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-04-27 14:30:00 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-04-27 14:30:00 +0200
commit4daaa895f6432c0ee78ea48583df78a4fd981f03 (patch)
treec8cee4bcbcf2ec944f6df59bbdcb6ae248fefd20
parentafcab7ec8e9496285ee93416120411be5b3c0e8e (diff)
downloadbuildscripts-4daaa895f6432c0ee78ea48583df78a4fd981f03.tar.gz
buildscripts-4daaa895f6432c0ee78ea48583df78a4fd981f03.tar.bz2
buildscripts-4daaa895f6432c0ee78ea48583df78a4fd981f03.zip
fix detection of top commit on a branch (or tag)
-rwxr-xr-xbin/build-deb-package2
-rwxr-xr-xbin/build-rpm-package2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/build-deb-package b/bin/build-deb-package
index ee3444d..2d732d0 100755
--- a/bin/build-deb-package
+++ b/bin/build-deb-package
@@ -139,7 +139,7 @@ prepare_workspace() {
git clean -df
fi
- GIT_OBJECT_ID="$(git show-ref -s heads/master)"
+ GIT_OBJECT_ID="$(git rev-parse --verify HEAD)"
cd "${PROJECT_DIR}"
# by default we build for all current debian versions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 26c527c..860187d 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -530,7 +530,7 @@ prepare_workspace() {
git clean -df
fi
- GIT_OBJECT_ID="$(git show-ref -s heads/master)"
+ GIT_OBJECT_ID="$(git rev-parse --verify HEAD)"
cd "${PROJECT_DIR}"
if [ "x${ARGV2_CODENAME}" != "x" ]; then