Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
run-command: add pre-exec callback
[gitweb.git]
/
run-command.c
diff --git
a/run-command.c
b/run-command.c
index 6e29fdf9e2968900d21ea48b992f292204621f19..73d0c312767191a2150b5223806c1733533bc5c2 100644
(file)
--- a/
run-command.c
+++ b/
run-command.c
@@
-110,6
+110,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 {