ruby-changes:57433
From: Nobuyoshi <ko1@a...>
Date: Sat, 31 Aug 2019 14:46:59 +0900 (JST)
Subject: [ruby-changes:57433] Nobuyoshi Nakada: d7aa1260b6 (master): Remove files/directories for git/github which are committed [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=d7aa1260b6 From d7aa1260b6c378b2f540a06eb770bc07db0ebb53 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 31 Aug 2019 14:44:57 +0900 Subject: Remove files/directories for git/github which are committed [ci skip] diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index ca5c471..8896c34 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -250,6 +250,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L250 end def after_export(dir) + FileUtils.rm_rf(Dir.glob("#{dir}/.git*")) end def revision_handler(rev) @@ -386,6 +387,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L387 end def after_export(dir) + super FileUtils.rm_rf(dir+"/.svn") end @@ -571,10 +573,6 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L573 system(COMMAND, "clone", "-s", (@srcdir || '.').to_s, "-b", url, dir) end - def after_export(dir) - FileUtils.rm_rf(Dir.glob("#{dir}/.git*")) - end - def branch_beginning(url) cmd_read(%W[ #{COMMAND} log -n1 --format=format:%H --author=matz --committer=matz --grep=has\ started -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/