diff --git a/c3po/mod/communicator.py b/c3po/mod/communicator.py index 65209db..2a9fdd0 100644 --- a/c3po/mod/communicator.py +++ b/c3po/mod/communicator.py @@ -264,9 +264,10 @@ def git_push(git_message=None, git_repository=None, git_branch=None, locale_root raise PODocsError(e) try: - subprocess.check_call(['git', 'ls-remote', git_repository]) - except subprocess.CalledProcessError: + subprocess.check_call(['git', 'remote', 'add', 'po_translator', git_repository]) + except subprocess.CalledProcessError as e: try: + subprocess.check_call(['git', 'remote', 'rm', 'po_translator']) subprocess.check_call(['git', 'remote', 'add', 'po_translator', git_repository]) except subprocess.CalledProcessError as e: raise PODocsError(e)