|
|
|
@ -44,7 +44,11 @@ class GiteaService(private val handle: GiteaApiService) : RepositoryService {
|
|
|
|
|
sha: String?,
|
|
|
|
|
page: Int
|
|
|
|
|
): List<CommitActivity> = withContext(Dispatchers.IO) {
|
|
|
|
|
handle.listCommits(repository.identifier.owner, repository.identifier.name, sha, page)
|
|
|
|
|
if (page < 1) {
|
|
|
|
|
emptyList()
|
|
|
|
|
} else {
|
|
|
|
|
handle.listCommits(repository.identifier.owner, repository.identifier.name, sha, page)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override suspend fun listFileContents(repository: RepositoryIdentifiable, filePath: String): List<VersionedFile> = withContext(Dispatchers.IO) {
|
|
|
|
|