commit 0ff6624a8e232a970f0c6783e3c688070b7ec8be
Author: Agustí Moll Garcia <agusti@biruji.org>
Date:   Wed Nov 9 01:50:30 2011 +0100

    Change method to get the branch of git.

diff --git a/Makefile b/Makefile
index 2763f00..e1a2b32 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ KCONFIG = $(BUILD_DIR)/$(T)/target/linux/$(ARCH)/config-*
 
 
 define build_src
-	make -C $(BUILD_DIR)/$(T) $(MAKE_SRC) BRANCH_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git status -b -s |grep ^##|cut -d " " -f 2) REV_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git --no-pager log -n 1 --oneline|cut -d " " -f 1)
+	make -C $(BUILD_DIR)/$(T) $(MAKE_SRC) BRANCH_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git branch|grep ^*|cut -d " " -f 2) REV_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git --no-pager log -n 1 --oneline|cut -d " " -f 1)
 endef
 
 define checkout_src
