2015-02-05 51 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 
相關問題