"repo sync" 失败 "bad command: git-upload-pack '...' "
"repo sync" failed with "bad command: git-upload-pack '...' "
在下面的日志中,URL repos/repoman@svr:repos/apps/init 是错误的。
右边的URL应该是repoman@svr:repos/apps/init.
Gitolite 运行 在服务器上,svr.
请指出应该修改哪些内容才能使回购同步正常工作。
谢谢!
me@ubuntu1204x64:/home/me/work$ repo init -u repoman@svr:repos/manifests -m model_r1.xml
Get repoman@svr:repos/manifests
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 2), reused 0 (delta 0)
From 172.16.100.235:/mdm9640_le/manifests
* [new branch] master -> origin/master`
me@ubuntu1204x64:/home/me/work$ repo sync
Fetching project apps/init
bad command: git-upload-pack repos/repoman@svr:repos/apps/init
fatal: The remote end hung up unexpectedly`
me@ubuntu1204x64:/home/me/work$ cat .repo/manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="repoman@svr:repos" name="origin"/>
<default remote="origin" revision="model_r1"/>
<project path="apps/init" name="apps/init" revision="refs/heads/model_r1" />
</manifest>`
根据http://bbs.scmlife.com/thread-29024-1-1.html,
<remote fetch="./" name="origin"/>
效果很好。
我自己尝试了一段时间。对于将来寻找答案的人(比如我自己),使用不在 init repo 子目录中的 gitolite repo 的正确方法你可以使用
<remote fetch="git+ssh://user@server/" name="gitolite" />
在下面的日志中,URL repos/repoman@svr:repos/apps/init 是错误的。
右边的URL应该是repoman@svr:repos/apps/init.
Gitolite 运行 在服务器上,svr.
请指出应该修改哪些内容才能使回购同步正常工作。
谢谢!
me@ubuntu1204x64:/home/me/work$ repo init -u repoman@svr:repos/manifests -m model_r1.xml
Get repoman@svr:repos/manifests
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 2), reused 0 (delta 0)
From 172.16.100.235:/mdm9640_le/manifests
* [new branch] master -> origin/master`
me@ubuntu1204x64:/home/me/work$ repo sync
Fetching project apps/init
bad command: git-upload-pack repos/repoman@svr:repos/apps/init
fatal: The remote end hung up unexpectedly`
me@ubuntu1204x64:/home/me/work$ cat .repo/manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="repoman@svr:repos" name="origin"/>
<default remote="origin" revision="model_r1"/>
<project path="apps/init" name="apps/init" revision="refs/heads/model_r1" />
</manifest>`
根据http://bbs.scmlife.com/thread-29024-1-1.html,
<remote fetch="./" name="origin"/>
效果很好。
我自己尝试了一段时间。对于将来寻找答案的人(比如我自己),使用不在 init repo 子目录中的 gitolite repo 的正确方法你可以使用
<remote fetch="git+ssh://user@server/" name="gitolite" />