MCPcopy Create free account
hub / github.com/modelscope/modelscope / pull

Method pull

modelscope/hub/repository.py:108–110  ·  view source on GitHub ↗

Pull *remote*/*branch* into the local checkout.

(self, remote: str = 'origin', branch: str = 'master')

Source from the content-addressed store, hash-verified

106 return f'{endpoint}/{model_id}.git'
107
108 def pull(self, remote: str = 'origin', branch: str = 'master'):
109 """Pull *remote*/*branch* into the local checkout."""
110 self.git_wrapper.pull(self.model_dir, remote=remote, branch=branch)
111
112 def add_lfs_type(self, file_name_suffix: str) -> None:
113 """Track an additional file-name pattern with Git LFS."""

Callers 1

pushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected