diff options
author | Kevin Sawicki <kevin@github.com> | 2011-08-24 13:22:05 -0700 |
---|---|---|
committer | Kevin Sawicki <kevin@github.com> | 2011-08-24 13:22:05 -0700 |
commit | e54404d555356ee12761366884c4774cd9393207 (patch) | |
tree | d741ae82b42e0c83c263ca8397aaace524c2343e /org.eclipse.jgit.storage.dht/src/org/eclipse | |
parent | eb5e9532dfd04959f3c1fea79133c357ce5cbfc0 (diff) | |
download | jgit-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.java | 2 |
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) |