ruby-changes:58885
From: Kazuhiro <ko1@a...>
Date: Sat, 23 Nov 2019 01:58:14 +0900 (JST)
Subject: [ruby-changes:58885] 271cb9acd2 (master): Suppress git error message
https://git.ruby-lang.org/ruby.git/commit/?id=271cb9acd2 From 271cb9acd268c6074b86426e25ee61b5987e5fb3 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Sat, 23 Nov 2019 01:55:29 +0900 Subject: Suppress git error message `fatal: not a git repository (or any of the parent directories): .git` diff --git a/defs/gmake.mk b/defs/gmake.mk index c6fdbca..fc4606c 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -292,7 +292,7 @@ $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: \ https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L292 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. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/