2015-02-05 79 views
4

要安装Phabricator,我需要git-http-backend(一个CGI脚本)。虽然这不与Mac或HomeBrew的git。我在哪里可以找到它?在Mac上,我可以在哪里找到git-http-backend?

我大概可以创建一个名为git-http-backend的shell脚本,它调用git http-backend(即,使用命令http-backend调用git)。但我该如何处理参数?

感谢您的指点!

回答

3

我假设得太快,它不在那里。对我感到羞耻。

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 
0

我从官方git-scm.com网站安装的git,发现它包含git-http-backend这里:

/usr/local/git/libexec/git-core/git-http-backend 
0

对于那些谁通过MacPorts安装的git,你git-http-backend位于:

/opt/local/libexec/git-core/git-http-backend 
相关问题