summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-20 13:11:48 -0700
committerJunio C Hamano <gitster@pobox.com>2015-03-20 13:11:48 -0700
commitec0465ade87996214959a393239eec520daf92ea (patch)
tree714fd5f0ab87cba55d894a2031220ff7f5cf1aff /git-compat-util.h
parent89ebf97c11a6ac2e20e0e527ae6791584d7ae7ba (diff)
parentce026cc7e2ff729c9809fef860cd696d1f7bb06c (diff)
downloadgit-ec0465ade87996214959a393239eec520daf92ea.tar.gz
Merge branch 'km/bsd-shells'
Portability fixes and workarounds for shell scripts have been added to help BSD-derived systems. * km/bsd-shells: t5528: do not fail with FreeBSD shell help.c: use SHELL_PATH instead of hard-coded "/bin/sh" git-compat-util.h: move SHELL_PATH default into header git-instaweb: use @SHELL_PATH@ instead of /bin/sh git-instaweb: allow running in a working tree subdirectory
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index a3095be962..fbfd10dadc 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -876,4 +876,8 @@ struct tm *git_gmtime_r(const time_t *, struct tm *);
#define USE_PARENS_AROUND_GETTEXT_N 1
#endif
+#ifndef SHELL_PATH
+# define SHELL_PATH "/bin/sh"
+#endif
+
#endif