mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix GithubRebase action to use new Git API
This commit is contained in:
@@ -132,10 +132,11 @@ public class GithubRebaseAction extends DumbAwareAction {
|
||||
// Check that corresponding remote branch is configured for the fork origin repo
|
||||
final Ref<String> remoteForForkParentRepo = new Ref<String>();
|
||||
for (GitRemote gitRemote : gitRepository.getRemotes()) {
|
||||
final String fetchUrl = gitRemote.getFetchRefSpec();
|
||||
if (fetchUrl.endsWith(parent + ".git")) {
|
||||
remoteForForkParentRepo.set(gitRemote.getName());
|
||||
break;
|
||||
for (String url : gitRemote.getUrls()) {
|
||||
if (url.endsWith(parent + ".git")) {
|
||||
remoteForForkParentRepo.set(gitRemote.getName());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (remoteForForkParentRepo.isNull()){
|
||||
|
||||
Reference in New Issue
Block a user