summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Functions.zsh')
-rw-r--r--01_Functions.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index b2a9e2d..82bde17 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -47,6 +47,8 @@ get_git_branch ()
{
local my_git_branch
+ [ "$(git-ls-files . | head -n 1)" == "" ] && return
+
# Get current working GIT branch
my_git_branch="$(git-branch 2>&- | grep -E '^\* ' | cut -c3-)"