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.45k stars 1.24k forks source link

Invalid data in index #927

Open TrueWill opened 1 year ago

TrueWill commented 1 year ago

On an M1 Mac, every time I use GitUp on any repository I get

invalid data in index - calculated checksum does not match expected

I can recreate this by creating a new repository with git init, then adding a single commit of an empty file, then opening GitUp.

Version 1.3.5 (1048)

git version 2.40.0

lucasderraugh commented 1 year ago

Mmm, I'm on an M1 Max and can't repro this. My specific setup is Ventura 13.3.1 (git version 2.39.2 (Apple Git-143)).

Did you explicitly install a custom version of git?

To be clear with my repro steps (in folder for git project):

  1. git init
  2. touch file
  3. git add file
  4. git commit -m "Test"
  5. gitup (command line tool to open project in GitUp)
TrueWill commented 1 year ago

@lucasderraugh Yes, I'm using git installed through Homebrew. I'm on Ventura 13.3.1 as well.

Using your exact steps above I can reproduce the error.

However, if I explicitly use /usr/bin/git (git version 2.39.2 (Apple Git-143)) to create and update the repository then I do not get the error.

This appears to be an incompatibility with the current release of git.

FrancoisBlavoet commented 1 month ago

I am seeing this too, with the latest gitup + git versions, making it entirely unusable. Is there a way to set the git version used by gitup?

Cykelero commented 1 month ago

Strange: I can't reproduce either, using GitUp 1.4.0 and Git 2.45.2.

This might be related to the new index.skipHash option, for which support was added to libgit2 only recently.

FrancoisBlavoet commented 1 month ago

Same setup ( GitUp 1.4.0 and Git 2.45.2.)

index.skipHash is not set for me. I have tried setting it to false, and it does seem to solve the issue!