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

Method _run_git_command

modelscope/hub/git.py:52–57  ·  view source on GitHub ↗

Run a git subcommand, raising :class:`GitError` on failure.

(self, *args)

Source from the content-addressed store, hash-verified

50 # Low-level subprocess passthrough (legacy contract)
51 # ------------------------------------------------------------------
52 def _run_git_command(self, *args):
53 """Run a git subcommand, raising :class:`GitError` on failure."""
54 try:
55 return _GitCommand._run(*[a for a in args if a])
56 except Exception as exc: # _git.GitError → legacy GitError
57 raise GitError(str(exc)) from exc
58
59 # ------------------------------------------------------------------
60 # URL / token helpers

Callers 13

list_lfs_filesMethod · 0.95
config_git_tokenMethod · 0.95
add_user_infoMethod · 0.95
pullMethod · 0.95
pushMethod · 0.95
addMethod · 0.95
commitMethod · 0.95
checkoutMethod · 0.95
new_branchMethod · 0.95
get_remote_branchesMethod · 0.95
get_repo_remote_urlMethod · 0.95
tagMethod · 0.95

Calls 1

GitErrorClass · 0.90

Tested by

no test coverage detected