浏览代码

Fixed intermittent incomplete fork network

tags/v1.2.0
James Moger 11 年前
父节点
当前提交
2a63f699e7
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10
    0
      src/com/gitblit/GitBlit.java

+ 10
- 0
src/com/gitblit/GitBlit.java 查看文件

@@ -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));
}

正在加载...
取消
保存