fix bug in log command with empty git repositories

This commit is contained in:
Sebastian Sdorra
2012-08-12 14:58:18 +02:00
parent 6d7a6d5d1e
commit 9f4fb5dd67

View File

@@ -60,6 +60,8 @@ import sonia.scm.util.IOUtil;
import java.io.IOException;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
@@ -266,6 +268,8 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand
{
logger.warn("the repository {} seems to be empty",
repository.getName());
changesets = new ChangesetPagingResult(0, Collections.EMPTY_LIST);
}
}
catch (Exception ex)