git-up / GitUp

The Git interface you've been missing all your life has finally arrived.
http://gitup.co
GNU General Public License v3.0
11.48k stars 1.25k forks source link

Repository version 1 not supported #854

Open daisylb opened 2 years ago

daisylb commented 2 years ago

I get the following error trying to open a Git repo:

unsupported repository version 1. Only versions up to 0 are supported.

Sure enough, the repo in question has, in its .git/config:

[core]
    repositoryformatversion = 1

Are there plans to support repos like this one?

lucasderraugh commented 2 years ago

Interesting. Probably a libgit2 issue and I imagine they have resolved it in later builds. I need to wrap up my changes to the libgit2 branch I've worked on recently to fix merge fallout.

lucasderraugh commented 2 years ago

@daisylb Out of curiosity, is there a public repo I can pull that has this version so I can test this?

HegerM commented 1 year ago

Just ran into the same error, is there a way to resolve this? Can I just set the version to 0 in the config or will that break stuff?

lucasderraugh commented 1 year ago

@HegerM @daisylb Does this work now in the continuous channel release version 1.3.3?

SebastienMichoy commented 1 year ago

@lucasderraugh It doesn't work for me. Here are the errors I've got:

lucasderraugh commented 1 year ago

Doing a quick search reveals: https://github.com/libgit2/libgit2/issues/6044

Perhaps this is blocked on libgit2 for now then.

SebastienMichoy commented 1 year ago

Thanks for the update and the quick response! Sadly https://github.com/libgit2/libgit2/pull/6202 doesn't seem to be active anymore. Let's see in the upcoming months if libgit2 provide a fix.

daisylb commented 1 year ago

@lucasderraugh sorry for the delay in replying; I ended up deleting and recreating my repo for unrelated reasons, and the new one is version 0, so I can't say :(

auscompgeek commented 1 year ago

I know git sparse-checkout used to upgrade the repository format to version 1, but it seems like since https://github.com/git/git/commit/7316dc5f6f2c8297d32e47d5859933ffacb6c00e it doesn't any more.