Browse Source

Merge "Let LockFile.unlock use FileUtils.delete()"

stable-0.12
Shawn Pearce 14 years ago committed by Code Review
parent
commit
1e03d52f33
  1. 6
      org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java

6
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/LockFile.java

@ -488,7 +488,11 @@ public class LockFile {
if (haveLck) { if (haveLck) {
haveLck = false; haveLck = false;
lck.delete(); try {
FileUtils.delete(lck, FileUtils.RETRY);
} catch (IOException e) {
// couldn't delete the file even after retry.
}
} }
} }

Loading…
Cancel
Save