Browse Source

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>
tags/v1.1.0.201109011030-rc2
Kevin Sawicki 12 years ago
parent
commit
e54404d555

+ 1
- 1
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java View 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)

Loading…
Cancel
Save