Web Developer Extraordinaire!
RSS icon Email icon Home icon
  • Textmate and Git Bundle

    Posted on September 25th, 2009 3 comments

    I just recently had this problem and saw that the answer was buried in a TextMate blog entry comment thread.

    Are you getting the following error whenever you try to use the bundle?

    sh: git: command not found

    Did you install git through Macports or manually compile the source? Could your Git bundle for TextMate be a tad old?

    All of the above was true for me, but I was easily able to solve the issue with the following command:

    sudo ln -s /opt/local/bin/git /usr/bin/git

    Hope that cuts back on troubleshooting time for some of you out there!

    No related posts.

     

    3 responses to “Textmate and Git Bundle”

    1. I saw this on Twitter after the most recent TextMate update broke the git bundle for a few people. Creating soft links all over the place can end up being a bit of a mess. A cleaner and probably easier way to go about it is to make sure TextMate’s PATH variable contains git’s current location. You can edit the PATH variable from within TextMate here:

      Preferences ? Advanced ? Shell Variables

      You simply need to append git’s current location: “:/usr/local/bin” in my case (I installed git with homebrew); but it would be “:/opt/local/bin” for Chris. Here’s a screenshot of me editing my own path variable in case you’re worried you’re doing it wrong:

      http://cl.ly/1y0B0f3h0S1Y1C0D1P3P

    2. jdbartlett,
      excellent tip. thanx for posting the screenshot. finally the problem is solved. others were saying to use the shell variable TM_GIT with the path, which didn’t work for me. anyhow, thanx for posting.

    3. @jdbartlett but editing the path in TextMate’s prefs has no effect. The Git bundle still looks for git in /opt/local/bin.

      “sh: line 1: /opt/local/bin/git: No such file or directory”

    Leave a reply