Commit 4be94cb8 authored by Carlo Landmeter's avatar Carlo Landmeter

use git symbolic-ref to get branch name

parent 7215f7a6
......@@ -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};;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment