mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: IDEA-152430 Removing remote branch should offer to delete tracking branch
This used to work, but was broken a while ago, during some refactoring related to using of GitRemoteBranch objects.
This commit is contained in:
@@ -94,7 +94,7 @@ public class GitMultiRootBranchConfig extends DvcsMultiRootBranchConfig<GitRepos
|
||||
public static Collection<String> getTrackingBranches(@NotNull GitRepository repository, @NotNull String remoteBranch) {
|
||||
Collection<String> trackingBranches = new ArrayList<String>(1);
|
||||
for (GitBranchTrackInfo trackInfo : repository.getBranchTrackInfos()) {
|
||||
if (remoteBranch.equals(trackInfo.getRemote().getName() + "/" + trackInfo.getRemoteBranch())) {
|
||||
if (remoteBranch.equals(trackInfo.getRemoteBranch().getNameForLocalOperations())) {
|
||||
trackingBranches.add(trackInfo.getLocalBranch().getName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user