dcatteeu
dcatteeu

Reputation: 501

On Mac, where can I find git-http-backend?

To install Phabricator, I need git-http-backend (a CGI script). Though this does not come with Mac's nor HomeBrew's git. Where can I find it?

I could probably create a shell script named git-http-backend that calls git http-backend (that is, call git with the command http-backend). But how do I deal with the parameters?

Thanks for any pointers!

Upvotes: 5

Views: 734

Answers (3)

Sky
Sky

Reputation: 709

For those who installed git via MacPorts, your git-http-backend is located here:

/opt/local/libexec/git-core/git-http-backend

Upvotes: 0

HPierce
HPierce

Reputation: 7409

I installed git from the official git-scm.com website and found that it included git-http-backend here:

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

Upvotes: 0

dcatteeu
dcatteeu

Reputation: 501

I assumed too quickly, that it wasn't there. Shame on me.

sudo find . -name git-http-backend revealed the following:

Mac's git:

/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-http-backend
/Library/Developer/CommandLineTools/usr/libexec/git-core/git-http-backend

HomeBrew's git:

/usr/local/Cellar/git/2.0.1/libexec/git-core/git-http-backend

Upvotes: 4

Related Questions