diff options
author | Bryan Drewery <bryan@shatow.net> | 2020-04-22 02:34:57 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2020-04-27 19:35:48 +0300 |
commit | 654f22a655094ea485f4fb7a4c847d76807565bf (patch) | |
tree | 12b9b99bcaccdbb61b2663e7dc64b74b1467a02f /Makefile.in | |
parent | f1896eeb1aabf863a5c5f34d598043e91d1b1115 (diff) |
Don't run git-describe unless this is a git checkout.
Avoids reading PORTSDIR/.git apparently in the ports build.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 28bf089b..c0df93f9 100644 --- a/Makefile.in +++ b/Makefile.in @@ -3771,7 +3771,8 @@ gen-man-wiki: done .PHONY: poudriere poudriere: src/bin/poudriere.in - $(AM_V_GEN)if which git >/dev/null 2>&1 && \ + $(AM_V_GEN)if test -e $(top_srcdir)/.git && \ + which git >/dev/null 2>&1 && \ [ -d "$$(git -C "$(top_srcdir)" rev-parse --git-dir)" ]; then \ gitver=$$(git -C "$(top_srcdir)" describe --tags HEAD); \ sed -e "s,^\(POUDRIERE_VERSION\)=.*,\1='$${gitver}'," \ |