Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2017-06-14 20:33:31 +0300
committerBryan Drewery <bryan@shatow.net>2017-06-14 20:33:31 +0300
commit0487b23f0b49b9a09a0eefe26a1d9abd7b7466bc (patch)
tree8fe4be86d399a095587e5eeb5254b29a12db6e5b /Makefile.am
parent978c88c55fc51f1a0957cce61f06c4291802009b (diff)
poudriere: Fix populating git version in a worktree
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8295539a..e68a6209 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -305,7 +305,8 @@ gen-man-wiki:
MOSTLYCLEANFILES+= poudriere
.PHONY: poudriere
poudriere: $(top_srcdir)/src/bin/poudriere
- @if which git >/dev/null 2>&1 && [ -d $(top_srcdir)/.git ]; then \
+ @if which git >/dev/null 2>&1 && \
+ [ -d "$$(git -C "$(top_srcdir)" rev-parse --git-dir)" ]; then \
gitver=$$(git -C "$(top_srcdir)" describe --tags HEAD); \
echo "POUDRIERE_VERSION=$${gitver} > $@"; \
sed -e "s,^\(POUDRIERE_VERSION\)=.*,\1='$${gitver}'," \