Skip to content

Commit

Permalink
Merge pull request #19 from andresrc/JENKINS-38640
Browse files Browse the repository at this point in the history
[JENKINS-38640] Use a GREEDY RemoteInputStream
  • Loading branch information
jglick committed Oct 6, 2016
2 parents 42a296e + 5b4c755 commit ca8f6dd
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -119,13 +119,8 @@ public static void unstash(@Nonnull Run<?,?> build, @Nonnull String name, @Nonnu
if (!storage.isFile()) {
throw new AbortException("No such saved stash ‘" + name + "’");
}
InputStream is = new FileInputStream(storage);
try {
workspace.untarFrom(is, FilePath.TarCompression.GZIP);
// currently nothing to print; listener is a placeholder
} finally {
is.close();
}
new FilePath(storage).untar(workspace, FilePath.TarCompression.GZIP);
// currently nothing to print; listener is a placeholder
}

/**
Expand Down

0 comments on commit ca8f6dd

Please sign in to comment.