From 47222b0764ec076f1197fb91f34a8977c4bd0c59 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Tue, 8 Dec 2015 11:49:16 -0800 Subject: [PATCH] fix current_branch --- git-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-update b/git-update index 4c42b2a..077fe3e 100755 --- a/git-update +++ b/git-update @@ -3,7 +3,7 @@ set -e # bail on errors function current_branch() { - git rev-parse --abbrev-ref HEAD + git rev-parse --abbrev-ref HEAD | sed -e 's/^heads\///' } ORIG_BRANCH=$(current_branch)