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

Method get_repo_remote_url

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

Source from the content-addressed store, hash-verified

180 return ['/'.join(line.split('/')[1:]) for line in info[1:]]
181
182 def get_repo_remote_url(self, repo_dir: str) -> str:
183 rsp = self._run_git_command('-C', repo_dir, 'config', '--get',
184 'remote.origin.url')
185 return rsp.stdout.strip()
186
187 # ------------------------------------------------------------------
188 # Tags

Callers 5

get_model_id_from_cacheFunction · 0.95
config_git_tokenMethod · 0.95
_clone_if_neededFunction · 0.80
pushMethod · 0.80
pushMethod · 0.80

Calls 1

_run_git_commandMethod · 0.95

Tested by

no test coverage detected