ruby-changes:57467
From: Nobuyoshi <ko1@a...>
Date: Sun, 1 Sep 2019 23:34:21 +0900 (JST)
Subject: [ruby-changes:57467] Nobuyoshi Nakada: bd785ca077 (master): Restore pwd for each version
https://git.ruby-lang.org/ruby.git/commit/?id=bd785ca077 From bd785ca07779bacf78b9678b3d19eef4754fcbae Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 1 Sep 2019 23:24:05 +0900 Subject: Restore pwd for each version diff --git a/tool/make-snapshot b/tool/make-snapshot index 7216361..d441f62 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -199,6 +199,7 @@ rescue => e https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L199 end def package(vcs, rev, destdir, tmp = nil) + pwd = Dir.pwd patchlevel = false prerelease = false if rev and revision = rev[/@(\h+)\z/, 1] @@ -507,6 +508,7 @@ after-update:: https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L508 end.compact ensure FileUtils.rm_rf(v) if v and !$exported and !$keep_temp + Dir.chdir(pwd) end if [$srcdir, ($svn||=nil), ($git||=nil)].compact.size > 1 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/