Skip to content

Commit

Permalink
revert part of ef39dd5
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Dec 27, 2014
1 parent 51aea61 commit 2ecb4ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/org/jruby/RubyDir.java
Expand Up @@ -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 {
Expand Down

0 comments on commit 2ecb4ed

Please sign in to comment.