I just booted my Windows 10 machine for the first time in two or three months and updated a game whose versions I'm keeping in a git repo. There was a patch to the game, so I tried to stage the changes and got this error:
error: insufficient permission for adding an object to repository database .git/objects
I haven't changed anything since it worked a few months ago. ls -l
in git bash shows me as the owner of all the files in the game directory. I can move and rename the files there. I'm also the owner of all the directories under .git/objects
. What permission is git lacking?
More info
The structure of the path to the repo is C:\Program Files (x86)\Foo\Bar\.git
. I previously ran chown -R Kevin .
and chown -R Kevin .git
inside Bar
.
I can copy the Bar
folder to my desktop. But copying Bar
within Foo
or Foo
within C:\Program Files (x86)
requires admin privileges.
This doesn't seem to explain what permission git needs. It should only write to the .git
directory, right? And the error is from attempting to write files within .git
. I can touch
files there without any issue.
chkdsk
yet?