ruby-changes:65679
From: Nobuyoshi <ko1@a...>
Date: Sun, 28 Mar 2021 23:44:05 +0900 (JST)
Subject: [ruby-changes:65679] f7faac13c6 (master): sync_default_gems.rb: remove un-committed files [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=f7faac13c6 From f7faac13c6f7776cbdc20d8f59e33d26e30b93d0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 28 Mar 2021 23:39:27 +0900 Subject: sync_default_gems.rb: remove un-committed files [ci skip] As files non-existing in the repository cannot be checked out, remove files to be ignored once, and re-check the status. --- tool/sync_default_gems.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 540a052..5b64c83 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -436,6 +436,8 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L436 ignore, conflict = result.partition {|name| IGNORE_FILE_PATTERN =~ name} unless ignore.empty? system(*%W"git reset HEAD --", *ignore) + File.unlink(*ignore) + ignore = IO.popen(%W"git status --porcelain" + ignore, &:readlines).map! {|line| line[/^.. (.*)/, 1]} system(*%W"git checkout HEAD --", *ignore) end unless conflict.empty? -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/