mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[github] Always fetch PR branch
This commit is contained in:
+2
-3
@@ -86,9 +86,8 @@ class GithubPullRequestsDataLoader(private val project: Project,
|
||||
|
||||
runPartialTask(branchFetchRequest, indicator) {
|
||||
val details = getOrHandle(detailsRequest)
|
||||
if (!isCommitFetched(details.head.sha)) {
|
||||
git.fetch(repository, remote, emptyList(), "refs/pull/${details.number}/head:").throwOnError()
|
||||
}
|
||||
git.fetch(repository, remote, emptyList(), "refs/pull/${details.number}/head:").throwOnError()
|
||||
if (!isCommitFetched(details.base.sha)) throw IllegalStateException("Pull request base is not available after fetch")
|
||||
if (!isCommitFetched(details.head.sha)) throw IllegalStateException("Pull request head is not available after fetch")
|
||||
Couple.of(details.base.sha, details.head.sha)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user