无法克隆到回购:(任何帮助将不胜感激)我正在尝试从Perforce克隆回购。我有权回购。验证。
git p4 clone --destination=/workspaces/git/lotus/main //depot/lotus/main
Importing from //depot/lotus/main into /workspaces/git/lotus/main
Reinitialized existing Git repository in /workspaces/git/lotus/main/.git/
Doing initial import of //depot/lotus/main/ from revision #head into refs/remotes/p4/master
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/usr/libexec/git-core/git-p4", line 3287, in <module>
main()
File "/Library/Developer/CommandLineTools/usr/libexec/git-core/git-p4", line 3281, in main
if not cmd.run(args):
File "/Library/Developer/CommandLineTools/usr/libexec/git-core/git-p4", line 3155, in run
if not P4Sync.run(self, depotPaths):
File "/Library/Developer/CommandLineTools/usr/libexec/git-core/git-p4", line 2951, in run
self.importHeadRevision(revision)
File "/Library/Developer/CommandLineTools/usr/libexec/git-core/git-p4", line 2700, in importHeadRevision
for info in p4CmdList(["files"] + fileArgs):
File "/Library/Developer/CommandLineTools/usr/libexec/git-core/git-p4", line 475, in p4CmdList
stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
答案 0 :(得分:0)
这些行:
File "/Library/Developer/CommandLineTools/usr/libexec/git-core/git-p4", line 2700, in importHeadRevision
for info in p4CmdList(["files"] + fileArgs):
File "/Library/Developer/CommandLineTools/usr/libexec/git-core/git-p4", line 475, in p4CmdList
stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
表示git-p4
基本上在做:
$ p4 files <some_path>
但收到Permission denied
。如果您下载p4
并将其放在PATH
中,但忘记chmod
使其可执行,则可能会发生这种情况。