summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-03-10 11:13:40 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-03-10 11:13:41 -0800
commit28eec80b602559403cca96531dce2930ac362095 (patch)
treed7ff48184936b70d788f8d3aa7500c4134215c4f /builtin
parentMerge branch 'nd/git-common-dir-fix' into maint (diff)
parentam -i: fix "v"iew (diff)
downloadtgif-28eec80b602559403cca96531dce2930ac362095.tar.xz
Merge branch 'jc/am-i-v-fix' into maint
The "v(iew)" subcommand of the interactive "git am -i" command was broken in 2.6.0 timeframe when the command was rewritten in C. * jc/am-i-v-fix: am -i: fix "v"iew pager: factor out a helper to prepare a child process to run the pager pager: lose a separate argv[]
Diffstat (limited to 'builtin')
-rw-r--r--builtin/am.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 95decc6a59..5668e0c3a5 100644
--- a/builtin/am.c
+++ b/builtin/am.c
@@ -1821,7 +1821,7 @@ static int do_interactive(struct am_state *state)
if (!pager)
pager = "cat";
- argv_array_push(&cp.args, pager);
+ prepare_pager_args(&cp, pager);
argv_array_push(&cp.args, am_path(state, "patch"));
run_command(&cp);
}