1

For whatever reason, I cannot get the built-in source control tools in Xcode 4.1 to work with the git repository I have setup on my server. The server is setup to use Gitolite.

Everything works fine from the command line. I can add the remote, push, pull, and then clone out again. I can also access Github in Xcode just fine.

Has anyone been successful getting these two tools to work together?
Any idea how I can debug this (I have no idea what Xcode is doing behind the scenes)?

The only thing that has stood out to me is that Xcode wants to include a top-level folder when accessing the repository, i.e.: git@my-server.com:folder/repository-name.git and Gitolite doesn't want you to do that. It wants: git@my-server.com:repository-name.git

4

1 回答 1

1

我有一个在 Ubuntu 11.10 上运行的 Gitolite 2.0.3 服务器,并且我能够与在 Snow Leopard 上运行的 Xcode 4.2 中的内置 SCM 集成一起使用。

要查看有关提交和其他 SCM 操作的日志信息,请转到 Xcode 日志导航器(左栏中的语音气泡图标,或选择查看 > 导航器 > 显示日志导航器,或按 Cmd-9)。日志导航器具有仅显示错误消息的过滤器。这应该为您提供有关正在发生的事情的更多信息。

在您的问题中对我来说突出的一件事是,在使用 Gitolite 时,我从不使用.git客户端上的后缀进入 git URI。尝试省略它,看看在 Xcode 中工作时是否有任何不同。例如,我在服务器上有 git 存储库,位于类似~gitolite/repositories/project1.gitor的文件夹中~gitolite/repositories/apps/ios/project2.git,但是当我在客户端时,git URI 看起来像:ssh://gitolite@myserver.com:12345/project1ssh://gitolite@myserver.com:12345/apps/ios/project2.

于 2011-12-15T21:26:51.240 回答