update comment

The segfault seems to be fixed with git 2.43, I'm not sure what the
affected range was.
This commit is contained in:
Joey Hess 2024-01-20 11:25:22 -04:00
parent f8b73e0286
commit 2114253eaf
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -136,7 +136,7 @@ getBranch = maybe (hasOrigin >>= go >>= use) return =<< branchsha
<$> branchsha
go False = withIndex' True $ do
-- Create the index file. This is not necessary,
-- except to avoid a bug in git that causes
-- except to avoid a bug in git 2.37 that causes
-- git write-tree to segfault when the index file does not
-- exist.
inRepo $ flip Git.UpdateIndex.streamUpdateIndex []