From bfb1ff9519ef60d33d6befe6c24b77233b776a33 Mon Sep 17 00:00:00 2001 From: Peter Karlsson Date: Tue, 18 Mar 2008 09:42:24 +0100 Subject: [PATCH] Fixed spurious "/bin/sh: --list: command not found" error If git has been installed with a separate libexecdir which is not in path (for example, a standard msysgit installation), tig would not find "git-config", and we must instead find the "git" binary and call it as "git config". Signed-off-by: Peter Karlsson Signed-off-by: Jonas Fonseca --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 55d81a9..422039e 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,10 @@ AM_ICONV AC_PROG_CC AC_CHECK_PROGS(GIT_CONFIG, [git-config git-repo-config]) +if test "${ac_cv_prog_GIT_CONFIG}" = ""; then + AC_CHECK_PROGS(GIT, [git]) + GIT_CONFIG="${ac_cv_prog_GIT} config" +fi AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program]) AC_CHECK_PROGS(ASCIIDOC, [asciidoc false]) AC_CHECK_PROGS(XMLTO, [xmlto false]) -- 2.11.0