Skip to content
Permalink
Browse files
revert part of ef39dd5
  • Loading branch information
mkristian committed Dec 27, 2014
1 parent 51aea61 commit 2ecb4ed8df0061d13d0f94053e7aeace76a67b1f
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/src/main/java/org/jruby/RubyDir.java
@@ -338,6 +338,8 @@ public static IRubyObject chdir(ThreadContext context, IRubyObject recv, IRubyOb
try {
result = block.yield(context, path);
} finally {
// basically check if the oldCWD still exists
getDir(runtime, oldCwd, true);
runtime.setCurrentDirectory(oldCwd);
}
} else {

0 comments on commit 2ecb4ed

Please sign in to comment.