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