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:
Kyle J. McKay 2015-03-07 21:07:59 -08:00 committed by Junio C Hamano
parent ff7a9dc2c5
commit 1b56cdf901
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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));