diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-31 14:44:57 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-31 14:45:57 +0900 |
commit | d7aa1260b6c378b2f540a06eb770bc07db0ebb53 (patch) | |
tree | 05a44c28d36f6c143d11e2b471929873c5e9fbff | |
parent | 60a08d9a6c11fda25bb73ded9e26aabc57af9433 (diff) |
Remove files/directories for git/github which are committed [ci skip]
-rw-r--r-- | tool/lib/vcs.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index ca5c47190a..8896c3458a 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -250,6 +250,7 @@ class VCS end def after_export(dir) + FileUtils.rm_rf(Dir.glob("#{dir}/.git*")) end def revision_handler(rev) @@ -386,6 +387,7 @@ class VCS end def after_export(dir) + super FileUtils.rm_rf(dir+"/.svn") end @@ -571,10 +573,6 @@ class VCS 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 |