rtomayko / git-sh

A customized bash environment suitable for git work.
GNU General Public License v2.0
737 stars 83 forks source link

Custom-formatted log alias fails when loading git sh #12

Closed eeroan closed 11 years ago

eeroan commented 13 years ago

I have this:

lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative

in my .gitconfig

It works great with bash, but when entering git sh, I get this error:

bash: eval: line 24: syntax error near unexpected token (' bash: eval: line 24:gitalias lg='git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative''

Any idea?

phatblat commented 11 years ago

I use the exact same 'pimped out' git log alias and have no issues. Try a more recent version of git-sh.

My system:

rtomayko commented 11 years ago

Nice. Closing as stale for now.