Merge pull request #732 from willthames/fix_git_fail_json

Fixes for git module when it fails.
This commit is contained in:
Michael DeHaan
2012-07-31 05:04:47 -07:00
2 changed files with 5 additions and 5 deletions

View File

@@ -191,7 +191,7 @@ class TestRunner(unittest.TestCase):
def test_git(self):
if not get_binary("yum"):
raise SkipTest
repo = 'git://github.com/ansible/ansible.git'
repo = 'http://github.com/ansible/ansible.git'
dest = tempfile.mkdtemp()
result = self._run('git', ['repo=%s' % repo, 'dest=%s' % dest])
assert 'failed' not in result