diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java index a71640460..350d11f43 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java @@ -1248,7 +1248,7 @@ public class Repository { final int len = refName.length(); if (len == 0) return false; - if (refName.endsWith(LockFile.SUFFIX)) + if (refName.endsWith(".lock")) return false; int components = 1;