diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java index e8e4ffd75..42d0f6512 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java @@ -111,7 +111,6 @@ public class ArchiveCommand extends GitCommand { * for (...) { * format.putEntry(out, path, mode, repo.open(objectId)); * } - * } finally { * out.close(); * } * @@ -287,8 +286,9 @@ private OutputStream writeArchive(Format fmt) { walk.getObjectId(idBuf, 0); fmt.putEntry(outa, name, mode, reader.open(idBuf)); } - } finally { outa.close(); + } finally { + out.close(); } return out; } catch (IOException e) {