diff --git a/org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java b/org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java index a1f910ea2..b4394494a 100644 --- a/org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java +++ b/org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java @@ -337,7 +337,7 @@ public class DhtRefDatabase extends RefDatabase { RefList sym = oldCache.sym; if (ref.isSymbolic()) { - sym.put(ref); + sym = sym.put(ref); } else { int p = sym.find(refName); if (0 <= p)