Skip to content

Commit

Permalink
Restore pwd for each version
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Sep 1, 2019
1 parent fd4aad6 commit bd785ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tool/make-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bd785ca

Please sign in to comment.