gpt4 book ai didi

Git 推送到网络驱动器 : Cannot pread pack file

转载 作者:太空狗 更新时间:2023-10-29 13:24:05 24 4
gpt4 key购买 nike

我正在尝试本地推送到网络驱动器上的共享存储库。我收到以下错误:

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

然后:

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)

远程目录的权限是这样的:

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

有什么线索吗?

最佳答案

此错误消息来自 builtin/index-pack.c#unpack_data .
它调用wrapper.c#xpread包装 pread ( man page )

If successful, the number of bytes actually read is returned.
Upon read-ing end-of-file, zero is returned.
Otherwise, a -1 is returned and the global variable errno is set to indicate the error.

权限声明只有 ndbd 用户有权写入到已安装的文件夹。但阅读应该有效。
您需要检查 git packfiles 的权限在网络驱动器上通过 git push 操作创建,以查看是否适用相同的权限。

它们位于 /networkshare/repo.git/objects/networkshare/repo.git/objects/info/packs/networkshare/repo 中。 git/objects/pack/pack-*.idx

关于Git 推送到网络驱动器 : Cannot pread pack file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36572714/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com