Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

oh-my-zsh: git maximum nested function level reached

Get an error when I use standard git command:

[~/site]$ git branch
git:1: maximum nested function level reached

.zshrc:

plugins=(git osx colored-man gem brew go bundler rake rails)
source $ZSH/oh-my-zsh.sh
like image 851
Pavel Avatar asked Mar 15 '17 23:03

Pavel


2 Answers

My mistake, I moved bash function to zsh:

gr() {
  git rebase -i HEAD~$1
}

Solution:

function gr() {
  git rebase -i HEAD~$1
}
like image 57
Pavel Avatar answered Sep 22 '22 18:09

Pavel


I had the same error with a different command (export), caused by an accidental recursive function definition. I could solve the problem by removing the unwanted function:

unset -f export
like image 38
bluenote10 Avatar answered Sep 23 '22 18:09

bluenote10