Fix GithubRebase action to use new Git API

This commit is contained in:
Oleg Shpynov
2011-10-25 17:03:25 +04:00
parent 0fc745e7ca
commit 756f0ed3f5
@@ -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()){