[vlc-devel] [PATCH] Fix compilation from a git worktree
Romain Vimont
rom1v at videolabs.io
Wed May 29 11:29:43 CEST 2019
>From within a git worktree, "git describe" failed due to the explicit
--git-dir option:
GEN stamp-revision
fatal: not a git repository: '../../.git/'
Let git find the actual git dir by just providing the path (-C) from
which we want to execute the git command.
---
src/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index bc6694586f..79f5ad3e58 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -633,7 +633,7 @@ $(srcdir)/revision.txt:
stamp-revision:
$(AM_V_at)rm -f -- revision.tmp
$(AM_V_GEN)if ! git \
- --git-dir="$(top_srcdir)/.git" describe \
+ -C "$(top_srcdir)" describe \
--tags --long --match '?.*.*' --always; then \
cat $(srcdir)/revision.txt ; \
fi > revision.tmp
--
2.20.1
More information about the vlc-devel
mailing list