update doesn't work #1070

anupj opened this Issue Apr 15, 2012 · 18 comments


None yet
anupj commented Apr 15, 2012

When I type Y to update oh-my-zsh, I get this error message:

Last login: Sun Apr 15 15:22:10 on ttys000
git_compare_version: 4 : command not found: git

I'm using an iMac (osx lion 10.7.3), and I have git version installed.

My .zshrc file is as follows:

source $ZSH/oh-my-zsh.sh

export PATH=/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:/Library/PostgreSQL/9.0/bin:/usr/bin:/usr/sbin:/sbin:/Applications:

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

akavlie commented Apr 30, 2012

I'm getting this error after upgrading to OS X 10.7.3; first time I've seen it.


Same problem here... This issue appeared after I had restored backup from Time Machine.

wprater commented May 18, 2012

Im getting this now too, but I just installed 10.8 DP3


While trying to install new ruby gem, it appeared my system can't find make command. I installed command line dev tools, and it solved this issue. So - you should try it too ;)


Similar experience as mcmajkel, I was getting this error and installed the command line dev tools for XCode and it's now fixed. The trigger for me (though I didn't connect it at the time) was the update from XCode 3.2 to XCode 4.3.x

timdev commented Jun 3, 2012

I ran into the same issue after a 10.6->10.7 upgrade on a MacOS system. Fixed it (and hopefully broke nothing else) by swapping source $ZSH/oh-my-zsh.sh and export PATH=... in my .zshrc


I get this issue after changing to MT Lion


Just got this issue after upgrading to Mountain Lion


Have you tried to reinstall command line dev tools?


Ah, that fixed it. Thanks!

This link helped: https://gist.github.com/1860902


The problem is that XCode doesn't install command line tools by default anymore.
To install it:

In XCode's Preferences > Downloads you can install command line tools.


This info should be included in some kind of FAQ


Yep, updating command lines by opening Xcode fixed it. The rest of that article want needed for me at least.


After update do Mountain Lion too


when I try to update I'm getting:
You have not concluded your merge (MERGE_HEAD exists).
Please, commit your changes before you can merge.
There was an error updating. Try again later?

I tried git reset --hard , git merge --abort, git reset --merge
nothing is working?

Decad commented Mar 21, 2013

I am getting the same as anthonybrown, any solution?


I get this as well.


You have corrupted your local git tree somehow, and this is not OMZ's fault.

Maybe you can try to commit and see what happens? If git merge --abort and such do not work, you can try to remove MERGE_HEAD manually. Anyway, your best shot is probably to try to save your local changes, then clone your repository again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment