From 2ad9e20123a840d5338ea2ad4c4684826cff3776 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 7 Mar 2008 00:40:33 +0100 Subject: "fatal: Not a git repository"... Pfff... --- 01_Functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_Functions.zsh b/01_Functions.zsh index 82bde17..aa96dea 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -47,7 +47,7 @@ get_git_branch () { local my_git_branch - [ "$(git-ls-files . | head -n 1)" == "" ] && return + [ "$(git-ls-files . 2>&- | head -n 1)" == "" ] && return # Get current working GIT branch my_git_branch="$(git-branch 2>&- | grep -E '^\* ' | cut -c3-)" -- cgit v1.2.3