]> source.dussan.org Git - jgit.git/commitdiff
Fix wrong warning message in case of lock failures 38/127538/1
authorChristian Halstrick <christian.halstrick@sap.com>
Thu, 16 Aug 2018 15:44:28 +0000 (17:44 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 16 Aug 2018 19:30:46 +0000 (14:30 -0500)
Bug: 537969
Change-Id: I0854bbbe7393abaca36640d429886c30d95d5bf1

org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java

index a2923db9dda0174384f10d8e3b2bcd965c213bf7..3abf4dc5e5499dd0b9d2182b8e9b74ef2de4ee3b 100644 (file)
@@ -389,7 +389,7 @@ public class FS_POSIX extends FS {
                        Integer nlink = (Integer) (Files.getAttribute(lockPath,
                                        "unix:nlink")); //$NON-NLS-1$
                        if (nlink != 2) {
-                               LOG.warn("nlink of link to lock file {0} was not 2 but {1}", //$NON-NLS-1$
+                               LOG.warn("nlink of link to lock file {} was not 2 but {}", //$NON-NLS-1$
                                                lock.getPath(), nlink);
                                return false;
                        }