summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-08-20 04:42:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-20 04:42:55 (GMT)
commit0208c9611ab4e82b09feba857c4f9bc8e02a6d9d (patch)
tree6355e1529471b36f8c5fd8f9891b7b504d125962 /run-command.c
parentc8a4cbc23916feeae89a7c59523781e8bf8ac103 (diff)
parentea27a18ce2bf5860974745c04c24864231029e1d (diff)
downloadgit-0208c9611ab4e82b09feba857c4f9bc8e02a6d9d.zip
git-0208c9611ab4e82b09feba857c4f9bc8e02a6d9d.tar.gz
git-0208c9611ab4e82b09feba857c4f9bc8e02a6d9d.tar.bz2
Merge branch 'jk/pager-swap'
* jk/pager-swap: spawn pager via run_command interface run-command: add pre-exec callback
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-command.c b/run-command.c
index bbb9c77..caab374 100644
--- a/run-command.c
+++ b/run-command.c
@@ -111,6 +111,8 @@ int start_command(struct child_process *cmd)
unsetenv(*cmd->env);
}
}
+ if (cmd->preexec_cb)
+ cmd->preexec_cb();
if (cmd->git_cmd) {
execv_git_cmd(cmd->argv);
} else {