Explorar el Código

Fixed intermittent incomplete fork network

tags/v1.2.0
James Moger hace 11 años
padre
commit
2a63f699e7
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10
    0
      src/com/gitblit/GitBlit.java

+ 10
- 0
src/com/gitblit/GitBlit.java Ver fichero

@@ -1048,6 +1048,16 @@ public class GitBlit implements ServletContextListener {
}
}
// rebuild fork networks
for (RepositoryModel model : repositoryListCache.values()) {
if (!StringUtils.isEmpty(model.originRepository)) {
if (repositoryListCache.containsKey(model.originRepository)) {
RepositoryModel origin = repositoryListCache.get(model.originRepository);
origin.addFork(model.name);
}
}
}
long duration = System.currentTimeMillis() - startTime;
logger.info(MessageFormat.format(msg, repositoryListCache.size(), duration));
}

Cargando…
Cancelar
Guardar