Commits

Sebastian Sdorra committed 870bb5d

fix bug in log command with empty git repositories

  • Participants
  • Parent commits bb113d0

Comments (0)

Files changed (1)

File scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java

 
 import java.io.IOException;
 
+import java.util.Collection;
+import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
 
       {
         logger.warn("the repository {} seems to be empty",
           repository.getName());
+
+        changesets = new ChangesetPagingResult(0, Collections.EMPTY_LIST);
       }
     }
     catch (Exception ex)