From 0d6a2f77529e96585e8825c48786f8e141bf8977 Mon Sep 17 00:00:00 2001 From: John Gleezowood Date: Fri, 18 Nov 2016 13:35:42 +0300 Subject: [PATCH] Fix: error messages while getting status of new (no commits) repository --- plugins/git-prompt/gitstatus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git-prompt/gitstatus.py b/plugins/git-prompt/gitstatus.py index a8eb8284..e5c01c84 100644 --- a/plugins/git-prompt/gitstatus.py +++ b/plugins/git-prompt/gitstatus.py @@ -73,7 +73,7 @@ for st in status: staged.append(st) out = ' '.join([ - branch, + branch.replace(' ', '_'), str(ahead), str(behind), str(len(staged)),