From fbaa2f0b3b73271b692e7dc47cf19df6e05a7eeb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 18 Aug 2022 11:05:34 +0900 Subject: [PATCH] Suppress detached head warnings [ci skip] Check out the revisions for testing as "detached" from the beginning. --- defs/gmake.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/defs/gmake.mk b/defs/gmake.mk index 9d055d0f1a..93b7373668 100644 --- a/defs/gmake.mk +++ b/defs/gmake.mk @@ -324,7 +324,10 @@ $(srcdir)/gems/src/$(1): | $(srcdir)/gems/src $(srcdir)/.bundle/gems/$(1)-$(2): | $(srcdir)/gems/src/$(1) .bundle/gems $(ECHO) Copying $(1)@$(3) to $$(@F) - $(Q) $(CHDIR) "$(srcdir)/gems/src/$(1)" && $(GIT) fetch origin $(3) && $(GIT) checkout $(3) + $(Q) $(CHDIR) "$(srcdir)/gems/src/$(1)" && \ + $(GIT) fetch origin $(3) && \ + $(GIT) checkout --detach $(3) && \ + : $(Q) $(BASERUBY) -C "$(srcdir)" \ -Itool/lib -rbundled_gem \ -e 'BundledGem.copy("gems/src/$(1)/$(1).gemspec", ".bundle")'