mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-05 04:55:50 +01:00
fix unit test
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
package sonia.scm.repository.spi;
|
||||
|
||||
import org.eclipse.jgit.api.MergeResult;
|
||||
import org.eclipse.jgit.revwalk.RevCommit;
|
||||
import sonia.scm.ContextEntry;
|
||||
import sonia.scm.repository.InternalRepositoryException;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
@@ -13,6 +10,6 @@ public class GitMerger {
|
||||
if (revCommit.isPresent()) {
|
||||
return revCommit.get().toString().split(" ")[1];
|
||||
}
|
||||
throw new InternalRepositoryException(ContextEntry.ContextBuilder.entity(GitMerger.class, "merge commit failed"), "could not create commit on merge");
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user