From 4816dfe85261c07f53930c37957b965586e06b70 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Sun, 7 Oct 2012 03:25:55 +0200 Subject: Scripts: Fix branch detection with git older than 1.7.10 --- update_all_submodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'update_all_submodules') diff --git a/update_all_submodules b/update_all_submodules index 46fcc6d..8e6668f 100755 --- a/update_all_submodules +++ b/update_all_submodules @@ -12,7 +12,7 @@ if [[ ! -e .git ]] || exit 1 fi -branch=`git symbolic-ref --short -q HEAD` +branch=`git symbolic-ref -q HEAD | sed "s|^refs/heads/||"` if [[ -z "$branch" ]] || [[ -z "`git rev-parse --symbolic-full-name --remotes=\"*/$branch\"`" ]]; then echo "There is not active upstream branch. Exiting..." -- cgit v1.2.3