DESCRIPTION

Prevent NPEs on bare repositories

Make ProjectUtils and CommitMessageBuilder return empty IResource or
IProject arrays if the given repository is bare (or even null).

Bug: 527471
Change-Id: Ic4afb9ed4d62f9a412244e86270e0c3720571866
Signed-off-by: Alayna Houston xxx@xxx.xxx

COMMENTS

author: Alayna Houston
date: 2017-11-20 10:31:26.000000000

Uploaded patch set 1.

-------------------------------------
author: Brenden Conley
date: 2017-11-20 10:31:32.000000000

Patch Set 1:

Build Started https://ci.eclipse.org/egit/job/egit-stable.gerrit/1005/

-------------------------------------
author: Brenden Conley
date: 2017-11-20 10:57:54.000000000

Patch Set 1: Code-Review-1

Build Unstable 

https://ci.eclipse.org/egit/job/egit-stable.gerrit/1005/ : UNSTABLE

-------------------------------------
author: Alayna Houston
date: 2017-11-20 11:31:27.000000000

Patch Set 1:

Hmmmm... tests fail on stable-4.9 because the workspace metadata has in https://ci.eclipse.org/egit/job/egit-stable.gerrit/ws/org.eclipse.egit.ui.test/target/work/data/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs/

the following:

teamContentDescriptors/org.eclipse.core.resources.modelProvider/enabled=false
teamContentDescriptors/org.eclipse.egit.ui.changeSetModel/enabled=true
teamContentDescriptors/org.eclipse.jdt.ui.modelProvider/enabled=false
teamContentDescriptors/org.eclipse.team.cvs.core.changeSetModel/enabled=false
teamContentDescriptors/org.eclipse.team.ui.patchModelProvider/enabled=false

So we get the "Git commits" model in the synchronize view during tests, while the tests expect the core.resources model *only*. Somehow these synchronize view tests must ensure that only the right model providers are active.

No idea why these entries are there at all. They do not exist in my local junit workspace.

-------------------------------------
