diff options
author | Oneric <oneric@oneric.stub> | 2021-09-16 20:59:03 +0200 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2021-09-18 00:53:59 +0300 |
commit | 8f95b1a2b15568bd6a78e96e4ef21c6a3749bbef (patch) | |
tree | 5aeaf2d7f7bfa7cf86506925c1c67ca4c784baba | |
parent | f975de5d96aafd804c66ea79f0780ce2b30e1928 (diff) | |
download | libass-8f95b1a2b15568bd6a78e96e4ef21c6a3749bbef.tar.bz2 libass-8f95b1a2b15568bd6a78e96e4ef21c6a3749bbef.tar.xz |
configure: relax check for .git
For a top-level non-bare repository .git will be a directory,
but for submodules .git is a regular textfile containing the relative
path to the actual git-directory which will be subdir inside the
toplevel repositories git-directory.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ab54167..89d5eb0 100644 --- a/configure.ac +++ b/configure.ac @@ -333,7 +333,7 @@ AM_COND_IF([ENABLE_LARGE_TILES], [ ]) ## Make a guess about the source code version -AS_IF([test -d "${srcdir}/.git"], [ +AS_IF([test -e "${srcdir}/.git"], [ AC_PATH_PROG([git_bin], [git]) AS_IF([test -n "$git_bin"], [ srcversion_string="commit: $("$git_bin" -C "$srcdir" describe --tags --long --always --dirty --broken --abbrev=40)" |