Skip to content

Translate 04-git-server smart-http #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 4, 2015
Merged

Translate 04-git-server smart-http #120

merged 4 commits into from
Aug 4, 2015

Conversation

branchzero
Copy link
Contributor

No description provided.

@networm networm mentioned this pull request Jul 29, 2015
95 tasks
@networm networm modified the milestone: v1.0.0 Jul 29, 2015
Setting up Smart HTTP is basically just enabling a CGI script that is provided with Git called `git-http-backend` on the server.((git commands, "http-backend"))
This CGI will read the path and headers sent by a `git fetch` or `git push` to an HTTP URL and determine if the client can communicate over HTTP (which is true for any client since version 1.6.6).
If the CGI sees that the client is smart, it will communicate smartly with it, otherwise it will fall back to the dumb behavior (so it is backward compatible for reads with older clients).
通过 `git://` 进行匿名访问 或 SSH 访问,我们可以实现访问鉴权,但是还有一个协议可以同时实现上述两种需求。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我们一般通过 SSH 进行有鉴权访问,通过 git:// 进行无鉴权访问,但是还有一种协议可以同时实现以上两种方式的访问。

@sanddudu
Copy link
Contributor

@branchzero 已完成

@branchzero
Copy link
Contributor Author

@sanddudu 已针对意见做出修正,感谢:)

This CGI will read the path and headers sent by a `git fetch` or `git push` to an HTTP URL and determine if the client can communicate over HTTP (which is true for any client since version 1.6.6).
If the CGI sees that the client is smart, it will communicate smartly with it, otherwise it will fall back to the dumb behavior (so it is backward compatible for reads with older clients).
我们一般通过 SSH 进行鉴权访问,通过 git:// 进行无鉴权访问,但是还有一种协议可以同时实现以上两种方式的访问。
设置 Smart HTTP 一般只需要在服务器上启用一个 Git 自带的 CGI 脚本,名为 git-http-backend。((git commands, "http-backend"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

启用一个 Git 自带的名为 git-http-backend 的 CGI 脚本

@IceNature
Copy link
Contributor

@branchzero 已完成

@branchzero
Copy link
Contributor Author

@IceNature 已针对意见做出修正,感谢:)

Setting up Smart HTTP is basically just enabling a CGI script that is provided with Git called `git-http-backend` on the server.((git commands, "http-backend"))
This CGI will read the path and headers sent by a `git fetch` or `git push` to an HTTP URL and determine if the client can communicate over HTTP (which is true for any client since version 1.6.6).
If the CGI sees that the client is smart, it will communicate smartly with it, otherwise it will fall back to the dumb behavior (so it is backward compatible for reads with older clients).
我们一般通过 SSH 进行鉴权访问,通过 git:// 进行无鉴权访问,但是还有一种协议可以同时实现以上两种方式的访问。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议将"authenticated"翻译与前文统一,一般根据语境翻译成“授权”“验证”等,下同

@morefreeze
Copy link

@branchzero 辛苦了,已审校

@branchzero
Copy link
Contributor Author

@morefreeze 感谢指正,已经完善:)

networm added a commit that referenced this pull request Aug 4, 2015
Translate 04-git-server smart-http
@networm networm merged commit f40964b into progit:master Aug 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants