summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorKevin Sawicki2011-08-24 16:22:05 (EDT)
committer Kevin Sawicki2011-08-24 16:22:05 (EDT)
commite54404d555356ee12761366884c4774cd9393207 (patch)
treed741ae82b42e0c83c263ca8397aaace524c2343e
parenteb5e9532dfd04959f3c1fea79133c357ce5cbfc0 (diff)
downloadjgit-e54404d555356ee12761366884c4774cd9393207.zip
jgit-e54404d555356ee12761366884c4774cd9393207.tar.gz
jgit-e54404d555356ee12761366884c4774cd9393207.tar.bz2
Reassign symbolic ref list after calling put.refs/changes/66/4066/1
This is required since RefList.put returns a new RefList. Change-Id: I717d75d6f6154a6e0dc7cde3b72b0a59c68d955c Signed-off-by: Kevin Sawicki <kevin@github.com>
-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 a1f910e..b439449 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)