[vlc-commits] Fix compilation from a git worktree
Romain Vimont
git at videolan.org
Mon Jun 3 09:30:30 CEST 2019
vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Wed May 29 11:29:43 2019 +0200| [d5a705346df950c5f860879b9bd095c1c45c41b6] | committer: Steve Lhomme
Fix compilation from a git worktree
>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.
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d5a705346df950c5f860879b9bd095c1c45c41b6
---
src/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index f39793aa0c..663bbd4eb5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -632,7 +632,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
More information about the vlc-commits
mailing list