arl / tmux-gitbar

Git in your tmux status bar
GNU General Public License v3.0
170 stars 16 forks source link

Fix output for newly created repos #55

Closed arl closed 6 years ago

arl commented 6 years ago

Fix #54

On repositories with at least one commit, git status returns something along those lines:

git status --untracked-files=all --porcelain --branch
## refactor-engine...origin/refactor-engine

However when there are no commits yet the output is

## No commits yet on master

This special case is now taken care of by the modifications performed in this PR.