gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

GitButler can not initialize workspace on empty repositories

Open reld opened this issue 8 months ago • 2 comments

Version

0.14.16

Operating System

macOS

Distribution Method

dmg (Mac OS - Apple Silicon)

Describe the issue

Dear gitbutler team, first of all THANK YOU! Love GitButler <3

Today I tried to clone a new repository and got this error:

Unhandled exception
A promise had an unhandled exception.
Error: Reference 'refs/heads/main' not found; class=Reference (4); code=UnbornBranch (-9)
Image

It seems that when you create a new repo on github and you don't add e.g. a README or License, hence forcing a first commit gitbutler is not able to find the ref to the main branch. Image

The repo got cloned though, but gitbutler could not initialize the workspace.

So cloning entirely empty repositories does not seems to work.

Many thanks in advance, Reld.

How to reproduce (Optional)

  1. Create a new repository and do not add a README nor a license so the repo will be entirely empty.
  2. Go to git butler and try to clone the repo.

Expected behavior (Optional)

  1. Clone an empty repository as I would using git on the CLI git clone [email protected]/.....

Relevant log output (Optional)


reld avatar Apr 11 '25 07:04 reld

Thanks a lot for reporting!

I'd expect this to be fixed with the next major release of the application, which is "right around the corner".

Byron avatar Apr 12 '25 13:04 Byron

Nice :) thank you and have a good one!

reld avatar Apr 16 '25 14:04 reld