You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
651 B
17 lines
651 B
diff --git a/Makefile b/Makefile
|
|
index 97f63eb..0e2636b 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -245,9 +245,9 @@ test: zdtm
|
|
# Generating tar requires tag matched CRIU_VERSION.
|
|
# If not found then simply use GIT's describe with
|
|
# "v" prefix stripped.
|
|
-head-name := $(shell git tag -l v$(CRIU_VERSION))
|
|
+head-name := $(shell if [ -d ".git" ]; then git tag -l v$(CRIU_VERSION); fi)
|
|
ifeq ($(head-name),)
|
|
- head-name := $(shell git describe 2>/dev/null)
|
|
+ head-name := $(shell if [ -d ".git" ]; then git describe 2>/dev/null; fi)
|
|
endif
|
|
# If no git tag could describe current commit,
|
|
# use pre-defined CRIU_VERSION with GITID (if any).
|