2017-02-28 86 views
2

当我这样做:混帐克隆复制-FD权限被拒绝

git clone [email protected]:xxx/xxx.git 

有一个错误:

Cloning into 'xxx'... 
error: copy-fd: write returned Permission denied 
fatal: cannot copy '/usr/share/git-core/templates/description' to '/mnt/wk01/xxx/.git/description': Permission denied 

谁能帮我?

回答

2

的权限问题可能不会在目标文件夹/mnt/wk01/xxx/,但在源文件夹usr/share/git-core/templates/description

由于mentioned here

Package: git-core, Version: 1.5.6.5

The file permissions of files placed in /usr/share/git-core/templates are wrong now. They are not readable for everyone, so command "git init" fails with message:

fatal: cannot copy /usr/share/git-core/templates/description to ... 

chmod a+r for all files in templates solves this issue.

确保upgrade to the latest git version through git-core ppa

+0

感谢您的帮助。 – hexilon