mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix git bare test in el6 by adding origin to remote
This commit is contained in:
@@ -192,7 +192,8 @@ class TestRunner(unittest.TestCase):
|
|||||||
# test the bare option
|
# test the bare option
|
||||||
result = self._run('git', ["repo=\"file:///tmp/gitdemo\"", "dest=/tmp/gdbare", "bare=yes", "remote=test"])
|
result = self._run('git', ["repo=\"file:///tmp/gitdemo\"", "dest=/tmp/gdbare", "bare=yes", "remote=test"])
|
||||||
assert result['changed']
|
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"])
|
result = self._run('git', ["repo=\"file:///tmp/gitdemo\"", "dest=/tmp/gdbare", "bare=yes"])
|
||||||
assert not result['changed']
|
assert not result['changed']
|
||||||
# test whether fetch is working for bare repos
|
# test whether fetch is working for bare repos
|
||||||
|
|||||||
Reference in New Issue
Block a user