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

Method checkout

modelscope/hub/git.py:166–167  ·  view source on GitHub ↗
(self, repo_dir: str, revision: str)

Source from the content-addressed store, hash-verified

164 f"'{message}'")
165
166 def checkout(self, repo_dir: str, revision: str):
167 return self._run_git_command('-C', repo_dir, 'checkout', revision)
168
169 def new_branch(self, repo_dir: str, revision: str):
170 return self._run_git_command('-C', repo_dir, 'checkout', '-b',

Callers

nothing calls this directly

Calls 1

_run_git_commandMethod · 0.95

Tested by

no test coverage detected