Skip to content

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

@MaddyGuthridge

Description

@MaddyGuthridge

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions