A recent attempt to update bundles returned
"sh: git: command not found"
But in terminal, I see
bash-$ git --version git version 1.7.3.1
which is something new. What's happening?
I'm running TM Version 1.5.10 (1623)
Model Identifier: MacBook5,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.4 GHz
with OS X 10.6.5
On 22 Dec 2010, at 08:39, Lewis Overton wrote:
Maybe git is not in your path? It's not even on my system so I can't tell you where it's supposed to be!
This will tell you where the program is: bash-$ which git
and this will tell you what your path is: bash-$ echo $PATH
If the location of git is not in $PATH then it won't be found. You could specify /path/to/git when you run it. Or add /path/to/ to your $PATH in .bash_profile. Find a line "export PATH=..." and, somewhere *before* the $PATH at the end put /path/to (or whatever it is). You will need to quit the shell for this to take effect.
Of course, if it is already in your path we'd need more of a clue, but this is a start.
I am far from an expert on this, but if Lewis can do
git --version
In the Terminal, and get a response, then git would seem to be in his path.
This sounds more like the problem where Mac GUI apps don't run the bash startup scripts. So the path defined in them is not read.
I would make a *very small* bet that if Lewis entered
git --version
In *TextMate* and choose "Text -> Execute Line Inserting Result"
That he'd get:
/bin/bash: git: command not found
Which is what I just received.
eo
On Dec 22, 2010, at 12:59 AM, Justin Catterall wrote:
The bundle updater uses the environmental variable TM_GIT, not the path, to determine the location of git. You should set it in.bash_profile to the location of git (check it with "which git" in the terminal). IFor example, if git was installed in the usual place, you'd put this line in your .bash_profile file:
export TM_GIT /usr/local/git/bin/git
Penny
On Dec 22, 2010, at 3:39 AM, Lewis Overton wrote:
I'm using GetBundles to update bundles. It has worked fine until recently. TextMate is Version 1.5.10 (1623) Build 10H574 OS X 10.6.5 МаcBоок 2.4 GHz Intel Core 2 Duo
Here's the log excerpt:
12/29/2010 16:34:54 TextMate[GetBundles] GetBundles – version 1.2 – Hans-Jörg Bibiko - bibiko@eva.mpg.de
12/29/2010 16:34:54 TextMate[GetBundles] GetBundles' DIALOG runs at token 1
sh: git: command not found
12/29/2010 16:35:05 TextMate[GetBundles] Cache File lists 967 bundles. Last modified date: Wed Dec 29 11:00:01 UTC 2010
From .bash_profile
export TM_GIT /usr/local/git/bin/git
And the directory, with a print of the version:
bash-$ cd /usr/local/git/bin/ bash-$ pwd /usr/local/git/bin bash-$ ls git git-cvsserver git-receive-pack git-shell git-upload-archive git-upload-pack gitk bash-$ bash-$ git --version git version 1.7.3.1 bash-$
On Thu, Dec 23, 2010 at 4:26 AM, Melissa Chase mpchase@mac.com wrote:
I'm still stumped.
Related to update bundles can't find git:
bash-$ git --version git version 1.7.3.1 bash-$ which git /usr/local/git/bin/git bash-$ echo $TM_GIT /usr/local/git/bin/git bash-$
looks ok to me.
TM preferences also had a definition for TM_GIT = /usr/local/git, which I changed to usr/local/git/bin/git. I tried update all bundles restarting TM in between. (note: "shell" means .bash_profile, reloaded after change).
1. set TM_GIT = /usr/local/git/bin/git in shell and TM_GIT = /usr/local/git in SHELL VARIABLES 2. shell as above, VARIABLE to match 3. shell as above, VARIABLE unchecked 4. shell as above, VARIABLE removed
Each time GetBundles returns
sh: git: command not found
I've been using TM since it first came out. It's been nice to me up to here. Maybe if I offer it a cookie? Or ... does anybody have any idea what silliness I'm doing?
Lewy
On Wed, Dec 29, 2010 at 6:11 PM, Melissa Chase mpchase@mac.com wrote:
Maybe add /usr/local/git/bin/ in TextMate's PATH shell variable?
-- FredB
On 22 Dec 2010, at 09:39, Lewis Overton wrote:
I am uncertain as to what command exactly you are invoking. But none of the GetBundles support files reference TM_GIT, so it would seem that it relies on the PATH to be set so that ‘git’ can be found.
Something which should probably be improved.
Is that the system path or the textmate path from preferences?
Lewy
On Sun, Jan 2, 2011 at 10:24 AM, Allan Odgaard mailinglist@textmate.orgwrote: