mirror of
https://github.com/git/git.git
synced 2024-11-27 12:03:55 +08:00
git-compat-util.h: move SHELL_PATH default into header
If SHELL_PATH is not defined we use "/bin/sh". However, run-command.c is not the only file that needs to use the default value so move it into a common header. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
ff7a9dc2c5
commit
1b56cdf901
@ -872,4 +872,8 @@ struct tm *git_gmtime_r(const time_t *, struct tm *);
|
||||
#define gmtime_r git_gmtime_r
|
||||
#endif
|
||||
|
||||
#ifndef SHELL_PATH
|
||||
# define SHELL_PATH "/bin/sh"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -4,10 +4,6 @@
|
||||
#include "sigchain.h"
|
||||
#include "argv-array.h"
|
||||
|
||||
#ifndef SHELL_PATH
|
||||
# define SHELL_PATH "/bin/sh"
|
||||
#endif
|
||||
|
||||
void child_process_init(struct child_process *child)
|
||||
{
|
||||
memset(child, 0, sizeof(*child));
|
||||
|
Loading…
Reference in New Issue
Block a user