MCPcopy Create free account
hub / github.com/amyasnikov/validity / push

Method push

validity/integrations/git.py:88–93  ·  view source on GitHub ↗
(
        self, local_path: str, remote_url: str, branch: str, username: str, password: str, force: bool = False
    )

Source from the content-addressed store, hash-verified

86 return commit_hash.decode()
87
88 def push(
89 self, local_path: str, remote_url: str, branch: str, username: str, password: str, force: bool = False
90 ) -> None:
91 branch = branch.encode() if branch else porcelain.active_branch(local_path)
92 with reraise(Exception, IntegrationError):
93 porcelain.push(local_path, remote_url, refspecs=branch, force=force, username=username, password=password)
94
95 def status(self, local_path: str) -> GitStatus:
96 status = porcelain.status(local_path)

Callers

nothing calls this directly

Calls 3

reraiseFunction · 0.90
encodeMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected