コード例 #1
0
ファイル: test_push.py プロジェクト: CMGS/ellen
    def test_push(self):
        repo = Jagare(self.path)

        path2 = self.get_temp_path()
        repo2 = Jagare.init(path2, bare=True)
        assert repo2.empty

        repo.add_remote('origin', repo2.path)
        repo.push('origin', 'master')
        assert not repo2.empty
コード例 #2
0
    def test_push(self):
        repo = Jagare(self.path)

        path2 = self.get_temp_path()
        repo2 = Jagare.init(path2, bare=True)
        assert repo2.empty

        repo.add_remote('origin', repo2.path)
        repo.push('origin', 'master')
        assert not repo2.empty
コード例 #3
0
ファイル: jagare_handler.py プロジェクト: tclh123/jagare-rpc
 def push(self, path, remote, ref, env):
     try:
         repo = Jagare(path)
         ret = repo.push(remote, ref, _env=env)
         return ProcessResultConverter(**ret).convert()
     except Exception as e:
         raise ServiceUnavailable(repr(e))
コード例 #4
0
ファイル: jagare_handler.py プロジェクト: tclh123/jagare-rpc
 def push(self, path, remote, ref, env):
     try:
         repo = Jagare(path)
         ret = repo.push(remote, ref, _env=env)
         return ProcessResultConverter(**ret).convert()
     except Exception as e:
         raise ServiceUnavailable(repr(e))