Skip to content

git2cpp status does not work in a newly initialised repo #58

@ianthomas23

Description

@ianthomas23

In a new repo created using git2cpp init a git2cpp status command fails whereas git status works OK:

$ mkdir temp
$ cd temp
$ ../build/git2cpp init .
$ ../build/git2cpp status
error: reference 'refs/heads/master' not found
$ git status
On branch master

No commits yet

nothing to commit (create/copy files and use "git add" to track)

I assume that the init is OK and it is the status at fault, perhaps if no branch exists it should fall back to assuming a default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions