]> source.dussan.org Git - jgit.git/commitdiff
Merge branch 'stable-5.9' into stable-5.10 51/172951/1
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 27 Nov 2020 09:10:35 +0000 (10:10 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 27 Nov 2020 09:10:44 +0000 (10:10 +0100)
* stable-5.9:
  Remove unused imports
  Silence API warnings
  Remove erraneously merged source features
  Prepare 5.3.9-SNAPSHOT builds
  JGit v5.3.8.202011260953-r
  Prepare 5.1.15-SNAPSHOT builds
  JGit v5.1.14.202011251942-r
  GC#deleteOrphans: log warning for deleted orphaned files
  GC#deleteOrphans: handle failure to list files in pack directory
  Ensure that GC#deleteOrphans respects pack lock
  PacketLineIn: ensure that END != DELIM
  Update API warning filters
  Remove unused imports

Change-Id: Icf415ac5bab2f69f71189c942424ee69f8a64d4e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
1  2 
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java

index 741d86e67fb6bd6f60be4b56ae141ebe7923daa4,c18a1895c360ae3f6207d8476bd3fc446b899001..1f2fe1057fcd38d5b28dae275336a5dc25a4ed37
@@@ -978,8 -984,9 +984,10 @@@ public class GC 
                        } else {
                                if (base == null || !n.startsWith(base)) {
                                        try {
-                                               FileUtils.delete(packDir.resolve(n).toFile(),
+                                               Path delete = packDir.resolve(n);
 -                                              Files.delete(delete);
++                                              FileUtils.delete(delete.toFile(),
 +                                                              FileUtils.RETRY | FileUtils.SKIP_MISSING);
+                                               LOG.warn(JGitText.get().deletedOrphanInPackDir, delete);
                                        } catch (IOException e) {
                                                LOG.error(e.getMessage(), e);
                                        }