浏览代码

Revert "Close unfinished archive entries on error"

This reverts commit 75d9b31f14.
Now that we do not try to close the ArchiveOutputStream in the error
path, there is no need to artificially close partial entries from
before the error.

Change-Id: I1f1cb08ec4e9b14c79bf4621f3fa959463034b82
Signed-off-by: Jonathan Nieder <jrn@google.com>
tags/v3.2.0.201311130903-m3
Jonathan Nieder 10 年前
父节点
当前提交
3467e865ac

+ 2
- 5
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java 查看文件

} }
entry.setSize(loader.getSize()); entry.setSize(loader.getSize());
out.putArchiveEntry(entry); out.putArchiveEntry(entry);
try {
loader.copyTo(out);
} finally {
out.closeArchiveEntry();
}
loader.copyTo(out);
out.closeArchiveEntry();
} }


public Iterable<String> suffixes() { public Iterable<String> suffixes() {

+ 2
- 5
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java 查看文件

} }
entry.setSize(loader.getSize()); entry.setSize(loader.getSize());
out.putArchiveEntry(entry); out.putArchiveEntry(entry);
try {
loader.copyTo(out);
} finally {
out.closeArchiveEntry();
}
loader.copyTo(out);
out.closeArchiveEntry();
} }


public Iterable<String> suffixes() { public Iterable<String> suffixes() {

正在加载...
取消
保存