Git Push to Network Drive: Cannot create pread package file

I am trying to output locally to a shared repo on a network drive. I get the following error:

:~/git push origin master Counting objects ... done Writing objects ... Total .... 

but then:

 fatal: cannot pread pack file: No Permission error: unpack failed: index-pack abnormal exit To /networkshare/repo.git ! [remote rejected] master -> master (n/a unpack error) 

Rights to the remote directory:

 :~/ls -all drwxr-xr-x ndbd MyGroup Date Repo.Git 

any clue?

+5
source share
1 answer

This error message appears in the form builtin/index-pack.c#unpack_data .
It calls wrapper.c#xpread , which wraps the pread ( man page )

If successful, the number of bytes actually read is returned.
After reading the final file, zero is returned.
Otherwise, -1 is returned, and the global variable errno set to indicate an error.

The permissions state that only the ndbd user has the right to write to this mounted folder. But reading should work.
You need to check the permissions of git packfiles created using the git push operation on a network drive to see if the same permissions apply.

They are located at /networkshare/repo.git/objects , /networkshare/repo.git/objects/info/packs and /networkshare/repo.git/objects/pack/pack-*.idx

+3
source

Source: https://habr.com/ru/post/1246944/


All Articles