0

I upgraded 4 days ago my flutter but today when I am try to upgrade 2.5 Flutter stable version I get this error

> ProcessException: Process exited abnormally: error: insufficient
> permission for adding an object to repository database .git/objects
> fatal: failed to write object fatal: unpack-objects failed   Command:
> git fetch --tags

I tried this steps :

cd /path/to/repo.git sudo chgrp -R groupname . 
sudo chmod -R g+rwX . 
find . -type d -exec chmod g+s '{}' +

sudo chown -R "${USER:-$(id -un)}" .

sudo chmod -R ug+w .;

none of them fixed my problem.

guccisekspir
  • 1,283
  • 1
  • 6
  • 25
  • Is your repository on a *local* file system, or do you have it on some kind of networked or shared storage? If the latter, it would appear that the networked/shared storage is refusing permission despite the local file permissions. If the former, the chown and chmod commands should have worked. – torek Sep 08 '21 at 22:52

0 Answers0