0

I'm initializing a repo in a Google Drive folder which contains a gsheet file. When I index the folder this error happens:

git add .
error: read error while indexing file.gsheet: Invalid argument
error: file.gsheet: failed to insert into database
error: unable to index file 'file.gsheet'

Do you know why is that? This question asking for the same error but I don't know how to apply it to my case.

Harsh Patel
  • 6,334
  • 10
  • 40
  • 73
Ooker
  • 1,969
  • 4
  • 28
  • 58
  • Might be a permissions error. Is the file is open in another application? – Josh Friedlander Nov 16 '22 at 12:00
  • @JoshFriedlander no, I don't think so – Ooker Nov 17 '22 at 06:57
  • This is generally some sort of OS-level error. (You could get it from a bug in Git, but this kind of bug in Git would be caught during testing.) You could get this error when trying to use a cloud-synced folder, for instance; the solution in that case is to avoid using Git with cloud-synced folders. – torek Nov 22 '22 at 04:37

0 Answers0