]> source.dussan.org Git - jgit.git/commitdiff
Reassign symbolic ref list after calling put. 66/4066/1
authorKevin Sawicki <kevin@github.com>
Wed, 24 Aug 2011 20:22:05 +0000 (13:22 -0700)
committerKevin Sawicki <kevin@github.com>
Wed, 24 Aug 2011 20:22:05 +0000 (13:22 -0700)
This is required since RefList.put returns a new RefList.

Change-Id: I717d75d6f6154a6e0dc7cde3b72b0a59c68d955c
Signed-off-by: Kevin Sawicki <kevin@github.com>
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java

index a1f910ea2a6bf1d7f9bf66513d9a11bde9a3eba1..b4394494a9328d3d36e70340d5e4fffa7257f760 100644 (file)
@@ -337,7 +337,7 @@ public class DhtRefDatabase extends RefDatabase {
                        RefList<DhtRef> sym = oldCache.sym;
 
                        if (ref.isSymbolic()) {
-                               sym.put(ref);
+                               sym = sym.put(ref);
                        } else {
                                int p = sym.find(refName);
                                if (0 <= p)