diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-06-29 17:09:27 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-06-29 17:09:27 -0700 |
commit | 4ed54610e5ca8fdc34dcf8729f6416599d1bc39e (patch) | |
tree | 3eca1184326848950e0a35938c7ca7032e45a6a1 /git.c | |
parent | 55ac692661f7b850bb0160de18fa9868d24dbe17 (diff) | |
parent | c35ec8c901a2391c4652ab1acdff04c9d67b1543 (diff) | |
download | git-4ed54610e5ca8fdc34dcf8729f6416599d1bc39e.tar.gz |
Merge branch 'da/git-prefix-everywhere' into next
* da/git-prefix-everywhere:
t/t7503-pre-commit-hook.sh: Add GIT_PREFIX tests
git-mergetool--lib: Make vimdiff retain the current directory
git: Remove handling for GIT_PREFIX
setup: Provide GIT_PREFIX to built-ins
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -183,8 +183,6 @@ static int handle_alias(int *argcp, const char ***argv) if (alias_string[0] == '!') { const char **alias_argv; int argc = *argcp, i; - struct strbuf sb = STRBUF_INIT; - const char *env[2]; commit_pager_choice(); @@ -195,13 +193,7 @@ static int handle_alias(int *argcp, const char ***argv) alias_argv[i] = (*argv)[i]; alias_argv[argc] = NULL; - strbuf_addstr(&sb, "GIT_PREFIX="); - 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); + ret = run_command_v_opt(alias_argv, RUN_USING_SHELL); if (ret >= 0) /* normal exit */ exit(ret); |