1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress git error message

`fatal: not a git repository (or any of the parent directories): .git`
This commit is contained in:
Kazuhiro NISHIYAMA 2019-11-23 01:55:29 +09:00
parent d7f100226d
commit 271cb9acd2
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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.