Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  Fix: Performance issue when traversing large Git repositories

Change-Id: I1078171ef584831a4cca92a08c4cc570d163db8d
This commit is contained in:
Sasa Zivkov
2013-11-14 14:47:32 +01:00

View File

@@ -469,6 +469,10 @@ public class ProjectControl {
Repository repo = repoManager.openRepository(projName);
try {
for (Entry<String, Ref> entry : repo.getAllRefs().entrySet()) {
String refName = entry.getKey();
if (!refName.startsWith("refs/heads") && !refName.startsWith("refs/tags")) {
continue;
}
RevCommit tip;
try {
tip = rw.parseCommit(entry.getValue().getObjectId());