URL: https://github.com/freeipa/freeipa/pull/304 Author: tiran Title: #304: Relax check for .git to support freeipa in submodules Action: opened
PR body: """ Let's relax the check for .git from directory to exists in order to support freeipa in a git submodule. Submodules have a .git file with content like gitdir: ../.git/modules/freeipa Signed-off-by: Christian Heimes <chei...@redhat.com> """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/304/head:pr304 git checkout pr304
From 1c074c0700a2380f84ad2c7ab24fce7063263eba Mon Sep 17 00:00:00 2001 From: Christian Heimes <chei...@redhat.com> Date: Fri, 2 Dec 2016 23:42:58 +0100 Subject: [PATCH] Relax check for .git to support freeipa in submodules Let's relax the check for .git from directory to exists in order to support freeipa in a git submodule. Submodules have a .git file with content like gitdir: ../.git/modules/freeipa Signed-off-by: Christian Heimes <chei...@redhat.com> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 66e6e9b..6e31b29 100644 --- a/configure.ac +++ b/configure.ac @@ -353,7 +353,7 @@ dnl Are we in source tree? AM_CONDITIONAL([IS_GIT_SNAPSHOT], [test "IPA_VERSION_IS_GIT_SNAPSHOT" == "yes"]) AM_COND_IF([IS_GIT_SNAPSHOT], [ AC_MSG_CHECKING([if source directory is a Git reposistory]) - if test ! -d "${srcdir}/.git"; then + if test ! -e "${srcdir}/.git"; then AC_MSG_ERROR([Git reposistory is required by VERSION.m4 IPA_VERSION_IS_GIT_SNAPSHOT but not found]) else AC_MSG_RESULT([yes])
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code