gitbutlerapp / gitbutler

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
https://gitbutler.com
Other
12.37k stars 486 forks source link

GitButler errors if repository doesn't have any commits #2514

Open tt opened 7 months ago

tt commented 7 months ago

If you point GitButler to a repository without any commits, you'll get the following error:

Error: Something went wrong

It would be great if the error message was specific or, ideally, GitButler would allow you to create the first commit.

I'm running version 0.9.17 (20240118.182445).

Steps to reproduce

  1. Run git init in a new directory
  2. Add a new project in GitButler pointing to the directory
Qix- commented 7 months ago

Thanks, yeah we have a number of edge cases like this that are getting fixed with a new git backend I'm working on, will just take a bit of time.

Another fun one, just for trivia's sake: if the remote repository is deleted, the app behaves quite strangely! :)

Thanks for reporting!

Byron commented 4 months ago

As of Version 0.11.3 (20240419.070253), adding an empty repository looks like this:

Screenshot 2024-04-21 at 14 04 23

It is also persisted in the project list, even though it is not usable yet. For this issue to be resolved, I think it should be possible to use GB as normal.

From there, each time GB comes up it will show the failing repository instead of open the last one that was opened successfully.