git-js
git-js copied to clipboard
Current branch is incorrectly reported as "No" when running `git status` on an empty repo
To reproduce:
git clone https://github.com/MadGutsBot/Empty.git(or any other empty repo)(await repo.status()).currentgives the string"No"- Contrastingly,
(await repo.branchLocal()).currentgives an empty string
I would expect these to give consistent results. In this case, given there are no branches, I'd expect the branch to be reported as null, although an empty string is manageable.