Skip to content

Commit

Permalink
fixing branch naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
John H committed Apr 21, 2016
1 parent 23f7998 commit 51a32cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion extra/make-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ set -ex
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $SCRIPT_DIR/..

BRANCH=$(git symbolic-ref --short -q HEAD)
# Use the TRAVIS_BRANCH var if defined as travis vm
# doesn't run the git symbolic-ref command.
if [ -z "$TRAVIS_BRANCH" ]; then
BRANCH=$(git symbolic-ref --short -q HEAD)
else
BRANCH=${TRAVIS_BRANCH}
fi

if [ -z "$DEBFULLNAME" ]; then
export DEBFULLNAME=`git log -n 1 --pretty=format:%an`
Expand Down

0 comments on commit 51a32cc

Please sign in to comment.