From 158a492a8e32338a1f9963b05d17c587f14454f9 Mon Sep 17 00:00:00 2001 From: pztrn Date: Sat, 26 Dec 2015 17:28:20 +0500 Subject: [PATCH] gitinfo: fix current branch parsing. --- zsh/apps/gitinfo.app.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/apps/gitinfo.app.zsh b/zsh/apps/gitinfo.app.zsh index ffe8fb5..a26a414 100644 --- a/zsh/apps/gitinfo.app.zsh +++ b/zsh/apps/gitinfo.app.zsh @@ -69,7 +69,7 @@ function gitinfo_get_branch() GITINFO_BRANCH="" return 1 fi - GITINFO_BRANCH=`git branch | cut -d " " -f 2` + GITINFO_BRANCH=`git branch | grep "*" | cut -d " " -f 2` } ######################################################################