有什么方法可以配置 egit 以使用您的 native (操作系统)git 而不是 jgit 实现?如果没有,是否有替代的 git Eclipse 插件?
EDIT #1 - 我应该注意,AWS CodeCommit 使用 credential helper对于 auth,来自 .gitconfig:
[credential]
helper = !/usr/local/bin/aws --profile CodeCommitProfile codecommit credential-helper $@
UseHttpPath = true
我猜这是 CodeCommit 特有的东西,不在 jgit 中。
最佳答案
EGit严格使用 JGit , Git 的 Java 实现。
Aptana Sudio3 中的 Git 插件似乎嵌入在产品源 ( github.com/aptana/studio3 ) 中,但使用的是原生 Git。
有一类jgit.transport.AmazonS3
,如 this question 中所示和 this one (setting IAM) .
有一个有趣的讨论in this thread这可以提供有关修补内容的线索:
Having looked at how JGit access the S3 host, JGit tries to access the bucket using virtual hosted style requests -
http://bucketname.s3.amazonaws.com/
- this request style works fine with buckets in the US Standard zone, but for other regions S3 redirects it with HTTP 307 redirect to the correct region.It seems that jgit does not handle this HTTP 307 redirect correctly, and will need to implement behavior to correctly handle redirects by S3.
关于eclipse - 在 Eclipse git 中使用 native git 而不是 jgit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29087558/