[repoView] Show Push/Fetch nodes correctly
commitf8db02fe34ebea2a6489e44ecf84086ea886ee15
authorMathias Kinzler <mathias.kinzler@sap.com>
Mon, 4 Apr 2011 22:58:56 +0000 (5 00:58 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 4 Apr 2011 22:58:56 +0000 (5 00:58 +0200)
tree1daa1fe3b3ab92ee213311ec770133638b0b38f3
parent4f6763d01e936fa9af51eb57d2e3ba6d17cf403b
[repoView] Show Push/Fetch nodes correctly

The "Fetch" node should always be shown if there is at least one fetch
URI, while the "Push" node should always be shown if there is either a
fetch URI or at least one push URI.

The existence of RefSpecs should not be checked here, as there is a
default RefSpec for pushing (we should also have one for fetching, but
it's not implemented yet).

Change-Id: I0799659d121ce95c804416d2b2a11a9e42aebd98
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRemoteHandlingTest.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesViewContentProvider.java