diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 00:40:33 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-03-07 14:15:23 +0100 |
commit | 2ad9e20123a840d5338ea2ad4c4684826cff3776 (patch) | |
tree | 28fa5e240fa34dc0a822f5662b4f848c00c4b559 | |
parent | c6cfb2102f415cedc4910f0dddedad9516e3580a (diff) |
"fatal: Not a git repository"... Pfff...
-rw-r--r-- | 01_Functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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-)" |