]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
make.sh: fix git branch read for new git versions.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 12 Jan 2014 22:19:35 +0000 (23:19 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 12 Jan 2014 22:19:35 +0000 (23:19 +0100)
make.sh

diff --git a/make.sh b/make.sh
index fa153c445c972f976a6ae325c23d254fed4ca81e..5d126650723ef566e6a6f8bdf9ded7833ce8ab09 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -27,7 +27,7 @@ SNAME="ipfire"                                                        # Short name
 VERSION="2.15"                                                 # Version number
 CORE="76-beta1"                                                        # Core Level (Filename)
 PAKFIRE_CORE="76"                                              # Core Level (PAKFIRE)
-GIT_BRANCH=`git status | head -n1 | cut -d" " -f4`             # Git Branch
+GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`                   # Git Branch
 SLOGAN="www.ipfire.org"                                                # Software slogan
 CONFIG_ROOT=/var/ipfire                                                # Configuration rootdir
 NICE=10                                                                # Nice level