Преглед на файлове

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 години
родител
ревизия
e54404d555
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java

+ 1
- 1
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)

Loading…
Отказ
Запис