summaryrefslogtreecommitdiffstats
path: root/run-command.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-10-25 12:41:15 +0200
committerJeff King <peff@peff.net>2012-10-25 12:41:15 +0200
commit55ff63007509d075d32861ff48cc8bb57d445b2a (patch)
tree4322ea2d5cd79df612511a3606cc38698ca64480 /run-command.c
parentGit 1.8.0 (diff)
parentpager: drop "wait for output to run less" hack (diff)
downloadgit-55ff63007509d075d32861ff48cc8bb57d445b2a.tar.xz
git-55ff63007509d075d32861ff48cc8bb57d445b2a.zip
Merge branch 'jk/no-more-pre-exec-callback'
Removes a workaround for buggy version of less older than version 406. * jk/no-more-pre-exec-callback: pager: drop "wait for output to run less" hack
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/run-command.c b/run-command.c
index 1101ef7237..3b982e4d55 100644
--- a/run-command.c
+++ b/run-command.c
@@ -397,16 +397,6 @@ fail_pipe:
unsetenv(*cmd->env);
}
}
- if (cmd->preexec_cb) {
- /*
- * We cannot predict what the pre-exec callback does.
- * Forgo parent notification.
- */
- close(child_notifier);
- child_notifier = -1;
-
- cmd->preexec_cb();
- }
if (cmd->git_cmd) {
execv_git_cmd(cmd->argv);
} else if (cmd->use_shell) {