diff --git a/git.c b/git.c index 9b8d3c92e6..c0698c7d45 100644 --- a/git.c +++ b/git.c @@ -345,6 +345,8 @@ static int handle_alias(int *argcp, const char ***argv) commit_pager_choice(); child.use_shell = 1; + child.clean_on_exit = 1; + child.wait_after_clean = 1; child.trace2_child_class = "shell_alias"; argv_array_push(&child.args, alias_string + 1); argv_array_pushv(&child.args, (*argv) + 1);