aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdabuild.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/dabuild.in b/dabuild.in
index 78ec170..a05c1bd 100755
--- a/dabuild.in
+++ b/dabuild.in
@@ -58,8 +58,7 @@ _DOCKER=$DABUILD_DOCKER
if [ "$DABUILD_VERSION" ]; then
ALPINE_RELEASE=$DABUILD_VERSION
else
- APORTS_BRANCH=$(git status | head -1)
- APORTS_BRANCH="${APORTS_BRANCH##*[ /]}"
+ APORTS_BRANCH=$(git symbolic-ref --short -q HEAD)
case $APORTS_BRANCH in
[[:digit:]].[[:digit:]]-stable)
ALPINE_RELEASE=${APORTS_BRANCH%-stable};;