Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

repo.branch fails on empty repo #22

Copy link
Copy link
@payload

Description

@payload
Issue body actions

Calling repo.branch on an empty repo created with repo.init the program aborts with following message:

node: ../../src/refs.c:1067: git_reference_oid: Assertion `ref' failed.
Aborted

I tracked the bug down to repo.js line 37 ref.oid().oid.

If the repo "contains" at least one commit, the error doesnt get thrown.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.