From: David Aguilar Date: Thu, 26 May 2011 05:05:32 GMT Subject: Re: [PATCH v2 3/3] git-mergetool--lib: Make vimdiff retain the current directory Message-ID: In-Reply-To: <1306381034-44190-3-git-send-email-davvid@gmail.com> On Wed, May 25, 2011 at 8:37 PM, David Aguilar wrote: > + > +resolve_git_prefix() { > +       # If GIT_PREFIX is empty then we cannot use it in tools > +       # that expect to be able to chdir() to its value. > +       if test -z "$GIT_PREFIX"; then > +               GIT_PREFIX=. > +               export GIT_PREFIX > +       fi > +} Oops, I forgot to replace the function call with : GIT_PREFIX=${GIT_PREFIX:-.} --     David