mroth / scmpuff

:1234: Numeric file shortcuts for common git commands
https://mroth.github.io/scmpuff/
MIT License
379 stars 21 forks source link

Doesn't work properly when git just initialized #36

Closed zommerfelds closed 6 years ago

zommerfelds commented 6 years ago
mkdir tmp
cd tmp
git init
touch hello
git add hello

Prints

2018/03/11 01:19:58 Failed to parse branch name for output: [## No commits yet on master]

Same for gs. git status works

mroth commented 6 years ago

Ah yes. Should be relatively simple to address by adding in ExtractBranch and adding a test case, if someone wants to take this on as a good introductory PR for the project!