starcraftman / zsh-git-prompt

[Active Fork] Informative git prompt for zsh
MIT License
58 stars 15 forks source link

Handle repo lacking initial commit #17

Closed starcraftman closed 6 years ago

starcraftman commented 6 years ago

Porcelain output when no commits registered on master. Nuissance. Update parsing to handle.

## Initial commit on master
madnight commented 6 years ago

Also with haskell version?

starcraftman commented 6 years ago

@madnight All seems well on Haskell, appears to output master as expected and 0s. I should probably add labels for Python and Haskell to make issues clear.

I simply didn't test new gitstatus.py on a repository without any commits until now.

starcraftman commented 6 years ago

2.17 has proven to be quite an annoying set of changes. The initial git repo status line is different text too. Thankfully travis has 2.17. My main machine has old git. Maybe I can add a git < 2.17 to the build matrix.