summaryrefslogtreecommitdiff
path: root/defs/gmake.mk
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-11-23 01:55:29 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-11-23 01:57:19 +0900
commit271cb9acd268c6074b86426e25ee61b5987e5fb3 (patch)
treea55380041a99ecffa3e38b26e27c0825c172f5ea /defs/gmake.mk
parentd7f100226d41df364b048c7956b5140922970e9a (diff)
downloadruby-271cb9acd268c6074b86426e25ee61b5987e5fb3.tar.gz
Suppress git error message
`fatal: not a git repository (or any of the parent directories): .git`
Diffstat (limited to 'defs/gmake.mk')
-rw-r--r--defs/gmake.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/defs/gmake.mk b/defs/gmake.mk
index c6fdbca969..fc4606c23c 100644
--- a/defs/gmake.mk
+++ b/defs/gmake.mk
@@ -292,7 +292,7 @@ $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: \
endif
REVISION_IN_HEADER := $(shell sed -n 's/^\#define RUBY_FULL_REVISION "\(.*\)"/\1/p' $(srcdir)/revision.h 2>/dev/null)
-REVISION_LATEST := $(shell cd $(srcdir) && git log -1 --format=%H)
+REVISION_LATEST := $(shell cd $(srcdir) && git log -1 --format=%H 2>/dev/null)
ifneq ($(REVISION_IN_HEADER),$(REVISION_LATEST))
# GNU make treat the target as unmodified when its dependents get
# updated but it is not updated, while others may not.