Fix an error when showing the status of a git repo

pull/655/head
Eduardo Bellido Bellido 2016-02-03 22:58:19 +01:00
parent c2166316ac
commit c290aa9638
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ function scm_prompt_info {
function git_status_summary { function git_status_summary {
awk ' awk '
BEGIN {
untracked=0;
unstaged=0;
staged=0;
}
{ {
if (!after_first && $0 ~ /^##.+/) { if (!after_first && $0 ~ /^##.+/) {
print $0 print $0