要安装Phabricator,我需要git-http-backend
(一个CGI脚本)。虽然这不与Mac或HomeBrew的git
。我在哪里可以找到它?在Mac上,我可以在哪里找到git-http-backend?
我大概可以创建一个名为git-http-backend
的shell脚本,它调用git http-backend
(即,使用命令http-backend
调用git
)。但我该如何处理参数?
感谢您的指点!
要安装Phabricator,我需要git-http-backend
(一个CGI脚本)。虽然这不与Mac或HomeBrew的git
。我在哪里可以找到它?在Mac上,我可以在哪里找到git-http-backend?
我大概可以创建一个名为git-http-backend
的shell脚本,它调用git http-backend
(即,使用命令http-backend
调用git
)。但我该如何处理参数?
感谢您的指点!
我假设得太快,它不在那里。对我感到羞耻。
sudo find . -name git-http-backend
揭示了以下内容:
Mac的混帐:
/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-http-backend
/Library/Developer/CommandLineTools/usr/libexec/git-core/git-http-backend
自制的混帐:
/usr/local/Cellar/git/2.0.1/libexec/git-core/git-http-backend
我从官方git-scm.com网站安装的git,发现它包含git-http-backend
这里:
/usr/local/git/libexec/git-core/git-http-backend
对于那些谁通过MacPorts安装的git,你git-http-backend
位于:
/opt/local/libexec/git-core/git-http-backend