1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Restore pwd for each version

This commit is contained in:
Nobuyoshi Nakada 2019-09-01 23:24:05 +09:00
parent fd4aad6d41
commit bd785ca077
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -199,6 +199,7 @@ rescue => e
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::
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