Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current branch is incorrectly reported as "No" when running git status on an empty repo #1020

Open
MaddyGuthridge opened this issue Sep 12, 2024 · 0 comments

Comments

@MaddyGuthridge
Copy link

MaddyGuthridge commented Sep 12, 2024

To reproduce:

  • git clone https://github.com/MadGutsBot/Empty.git (or any other empty repo)
  • (await repo.status()).current gives the string "No"
  • Contrastingly, (await repo.branchLocal()).current gives 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant