summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.storage.dht/src/org/eclipse
diff options
context:
space:
mode:
authorKevin Sawicki <kevin@github.com>2011-08-24 13:22:05 -0700
committerKevin Sawicki <kevin@github.com>2011-08-24 13:22:05 -0700
commite54404d555356ee12761366884c4774cd9393207 (patch)
treed741ae82b42e0c83c263ca8397aaace524c2343e /org.eclipse.jgit.storage.dht/src/org/eclipse
parenteb5e9532dfd04959f3c1fea79133c357ce5cbfc0 (diff)
downloadjgit-e54404d555356ee12761366884c4774cd9393207.tar.gz
jgit-e54404d555356ee12761366884c4774cd9393207.zip
Reassign symbolic ref list after calling put.
This is required since RefList.put returns a new RefList. Change-Id: I717d75d6f6154a6e0dc7cde3b72b0a59c68d955c Signed-off-by: Kevin Sawicki <kevin@github.com>
Diffstat (limited to 'org.eclipse.jgit.storage.dht/src/org/eclipse')
-rw-r--r--org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java2
1 files changed, 1 insertions, 1 deletions
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 a1f910ea2a..b4394494a9 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<DhtRef> sym = oldCache.sym;
if (ref.isSymbolic()) {
- sym.put(ref);
+ sym = sym.put(ref);
} else {
int p = sym.find(refName);
if (0 <= p)