[tests] Use mocked git user/system configs for repository tests
commitfe77e2e9e8b22ac451410d3816ee339b995a155a
authorThomas Wolf <thomas.wolf@paranor.ch>
Wed, 10 May 2017 14:30:48 +0000 (10 16:30 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Fri, 12 May 2017 11:34:29 +0000 (12 07:34 -0400)
treef1e72dfe880257e4f8b7eaa9bb1fb1138be67260
parentdd794068371ab607d3b87a4b8fcf1e20eea021db
[tests] Use mocked git user/system configs for repository tests

GitRepositoriesViewBranchHandlingTest.testBranchConfiguration()
failed locally for me because I have pull.rebase=true and
brach.autosetuprebase=always set in my user config. The test,
however, expects those not to be set and tests for
RebaseMode.NONE.

Also let's pretend that no git environment variables were set.

Tests should never use real git configs, and should not depend on
external environment variables.

Change-Id: I897a38c420df37dc01ffde8114d1dac7ad77a3e2
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java