Skip to content
Snippets Groups Projects
Select Git revision
  • 8c4a3e7b57164d8cb0da75db3be08587d0f0b173
  • master default
  • feature/setup.py
  • v0.2.0
  • v0.1.0
5 results

ansible-pre-commit

Blame
  • test_gitreceive.py 415 B
    def test_gitreceive(Command, Sudo):
        with Sudo():
            Command('rm -rf /home/git/test /var/tmp/gitreceive')
            push = Command('git -C /root/gitreceive push test master')
        assert push.rc == 0
        assert 'OK' in push.stderr
        with Sudo():
            second_push = Command('git -C /root/gitreceive push test master')
        assert second_push.rc == 0
        assert 'Everything up-to-date' in second_push.stderr