summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-10-25 10:41:15 (GMT)
committerJeff King <peff@peff.net>2012-10-25 10:41:15 (GMT)
commit55ff63007509d075d32861ff48cc8bb57d445b2a (patch)
tree4322ea2d5cd79df612511a3606cc38698ca64480 /run-command.c
parent8c7a786b6c8eae8eac91083cdc9a6e337bc133b0 (diff)
parente8320f350f523c3219ff8ec639663193941af57d (diff)
downloadgit-55ff63007509d075d32861ff48cc8bb57d445b2a.zip
git-55ff63007509d075d32861ff48cc8bb57d445b2a.tar.gz
git-55ff63007509d075d32861ff48cc8bb57d445b2a.tar.bz2
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 1101ef7..3b982e4 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) {