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

Method tag

modelscope/hub/git.py:190–196  ·  view source on GitHub ↗
(self,
            repo_dir: str,
            tag_name: str,
            message: str,
            ref: str = MASTER_MODEL_BRANCH)

Source from the content-addressed store, hash-verified

188 # Tags
189 # ------------------------------------------------------------------
190 def tag(self,
191 repo_dir: str,
192 tag_name: str,
193 message: str,
194 ref: str = MASTER_MODEL_BRANCH):
195 return self._run_git_command('-C', repo_dir, 'tag', tag_name, '-m',
196 f'"{message}"', ref)
197
198 def push_tag(self, repo_dir: str, tag_name: str):
199 return self._run_git_command('-C', repo_dir, 'push', 'origin',

Callers

nothing calls this directly

Calls 1

_run_git_commandMethod · 0.95

Tested by

no test coverage detected