On Wed, Apr 13, 2011 at 8:05 PM, Michael J Gruber <git@xxxxxxxxxxxxxxxxxxxx> wrote: > -            ret = run_command_v_opt(alias_argv, RUN_USING_SHELL); > +            strbuf_addstr(&sb, "GIT_CWD="); > +            if (subdir) > +                strbuf_addstr(&sb, subdir); > +            env[0] = sb.buf; > +            env[1] = NULL; > +            ret = run_command_v_opt_cd_env(alias_argv, RUN_USING_SHELL, NULL, env); > +            strbuf_release(&sb); >            Âif (ret >= 0)  /* normal exit */ >                Âexit(ret); subdir can be NULL. I'm not sure if it can be empty string though. May need a check and set it to '.' so "cd $GIT_CWD" does not go back to $HOME. -- Duy ÿô.nÇ·®+%˱é¥wÿº{.nÇ· ßØnr¡öë¨è&£ûz¹Þúzf£¢·h§~Ûÿÿïÿê_èæ+v¨þ)ßø