From 4391cbfd918be8a269d11167a7f48b074ec06ee2 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Thu, 14 Nov 2013 14:42:07 -0500 Subject: [PATCH] Fix git bare test in el6 by adding origin to remote --- test/TestRunner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/TestRunner.py b/test/TestRunner.py index 3ae95a071f..2d141f9e8d 100644 --- a/test/TestRunner.py +++ b/test/TestRunner.py @@ -192,7 +192,8 @@ class TestRunner(unittest.TestCase): # test the bare option result = self._run('git', ["repo=\"file:///tmp/gitdemo\"", "dest=/tmp/gdbare", "bare=yes", "remote=test"]) assert result['changed'] - # test a no-op fetch + # test a no-op fetch, add origin for el6 versions of git + self._run('command', ['git remote add origin file:///tmp/gitdemo', 'chdir=/tmp/gdbare']) result = self._run('git', ["repo=\"file:///tmp/gitdemo\"", "dest=/tmp/gdbare", "bare=yes"]) assert not result['changed'] # test whether fetch is working for bare repos