From c290aa9638f8cc7b0aa58017576ba67c125cc5d3 Mon Sep 17 00:00:00 2001 From: Eduardo Bellido Bellido Date: Wed, 3 Feb 2016 22:58:19 +0100 Subject: [PATCH] Fix an error when showing the status of a git repo --- themes/base.theme.bash | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index ee906dee..fffe4b7b 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -94,6 +94,11 @@ function scm_prompt_info { function git_status_summary { awk ' + BEGIN { + untracked=0; + unstaged=0; + staged=0; + } { if (!after_first && $0 ~ /^##.+/) { print $0