]> source.dussan.org Git - jgit.git/commit
Set commit time to ZipArchiveEntry 16/91116/6
authorNaoki Takezoe <takezoe@gmail.com>
Thu, 29 Dec 2016 04:47:17 +0000 (13:47 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 18 Feb 2017 09:47:27 +0000 (10:47 +0100)
commit1448ec37f9141d16da28151289e3d590c89fc739
treefa9e8078b2e8bc9fc536e32c7fc0db5c303322f7
parentd3962fef6b9736c416c14dbb12b54c0a4a269763
Set commit time to ZipArchiveEntry

Archived zip files for a same commit have different MD5 hash because
mdate and mdate in the header of zip entries are not specified. In
this case, Commons Compress sets an archived time.

In the original git implementation, it's set a commit time:
https://github.com/git/git/blob/e2b2d6a172b76d44cb7b1ddb12ea5bfac9613a44/archive.c#L378

By this fix, archive command sets the commit time to ZipArchiveEntry
when RevCommit is given as an archiving target.

Change-Id: I30dd8710e910cdf42d57742f8709e9803930a123
Signed-off-by: Naoki Takezoe <takezoe@gmail.com>
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.archive/META-INF/MANIFEST.MF
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TarFormat.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/Tbz2Format.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TgzFormat.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/TxzFormat.java
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/ZipFormat.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ArchiveCommandTest.java
org.eclipse.jgit/.settings/.api_filters
org.eclipse.jgit/src/org/eclipse/jgit/api/ArchiveCommand.java