Skip to content

Error: Getting main branch OID for repository #14

@jacobsimpson-addepar-jenkinsx-bot

Description

Nice work, I like where you are going with this.

I'm having a little trouble getting it going on one of my repos.

$ git branchless init 
$ git sl
Error: Getting main branch OID for repository

Caused by:
    cannot locate remote-tracking branch 'master'; class=Reference (4); code=NotFound (-3)

I suspect this is happening because my main branch is named main not master.

Now that the repository is git branchless init, branchless error messages are appearing for other commands too:

$ git rebase --onto main 4bfe550 b1
branchless: processing 1 update to a branch/ref
branchless: processing 1 update to a branch/ref
branchless: processing 1 update to a branch/ref
dropping 05a699a Generate. -- patch contents already upstream
branchless: processing 1 update to a branch/ref
branchless: processing 1 update to a branch/ref
branchless: processing 1 update to a branch/ref
branchless: processing commit
branchless: processing 1 update to a branch/ref
branchless: processing 1 update to a branch/ref
branchless: processing 2 rewritten commits
Error: Processing post-rewrite hook

Caused by:
    0: Getting main branch OID for repository
    1: cannot locate remote-tracking branch 'master'; class=Reference (4); code=NotFound (-3)
Successfully rebased and updated refs/heads/b1.

Thank you.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions