diff options
Diffstat (limited to 'pbr/tests/base.py')
-rw-r--r-- | pbr/tests/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pbr/tests/base.py b/pbr/tests/base.py index f18dadc..6c31bc9 100644 --- a/pbr/tests/base.py +++ b/pbr/tests/base.py @@ -92,6 +92,10 @@ class BaseTestCase(testtools.TestCase, testresources.ResourcedTestCase): self.log_fixture = self.useFixture( fixtures.FakeLogger('pbr')) + # Older git does not have config --local, so create a temporary home + # directory to permit using git config --global without stepping on + # developer configuration. + self.useFixture(fixtures.TempHomeDir()) self.useFixture(fixtures.NestedTempfile()) self.useFixture(fixtures.FakeLogger()) self.useFixture(fixtures.EnvironmentVariable('PBR_VERSION', '0.0')) |