sonia hamilton – linux, brazilian jiu jitsu

19 November 2009

macports: git-upload-pack: command not found

Filed under: Uncategorized — Sonia Hamilton @ 11:22
Tags: ,

When doing a git clone from a repo hosted on a Mac OSX machine (installed using macports), I get this error on the client (Linux, cygwin, whatever):

git-upload-pack: command not found

Solution is to do this on the OSX machine:

cd /usr/bin
sudo ln -s /opt/local/bin/git* .

Obviously some $PATH funkiness is going on somewhere on the Mac, and I should find a better fix. My personal $PATH on the Mac is OK:

$ echo $PATH


  1. Perhaps you got bit by the git-* commands being removed from $PATH? To run git commands now you have to run ‘git foo’ instead of ‘git-foo’.

    Comment by Paul Wise — 19 November 2009 @ 13:22 | Reply

    • Hi Pabs! No, the issue is when OSX is acting as a server eg I’m doing a clone on a Linux box from an OSX box. git-clone vs git clone doesn’t make a difference. (Or maybe I’ve misunderstood you).

      Comment by Sonia — 20 November 2009 @ 07:40 | Reply

  2. I ran into this two nights ago. If you’re using zsh you need to ensure you PATH environment variable is set in ~/.zshenv instead of .zshrc. This is because zsh doesn’t read .zshrc when the session isn’t interactive.

    E.g. in .zshenv

    export PATH=”/opt/local/bin:$PATH”

    Comment by Wes — 22 November 2009 @ 12:58 | Reply

    • Thanks Wes! .zshenv makes sense, Sonia.

      Comment by Sonia — 23 November 2009 @ 07:42 | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: