aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Halstrick <christian.halstrick@sap.com>2018-08-16 17:44:28 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2018-08-16 14:30:46 -0500
commit982be5db14f98765486e3f3a59ce4e44b881f296 (patch)
tree09cd28dc557d8d62011d2a08bb902cb309033da3
parent09753591fae875cee71eb5674a0103844351e508 (diff)
downloadjgit-982be5db14f98765486e3f3a59ce4e44b881f296.tar.gz
jgit-982be5db14f98765486e3f3a59ce4e44b881f296.zip
Fix wrong warning message in case of lock failures
Bug: 537969 Change-Id: I0854bbbe7393abaca36640d429886c30d95d5bf1
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
index a2923db9dd..3abf4dc5e5 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
@@ -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;
}