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

Method _add_git_token

modelscope/hub/git.py:62–63  ·  view source on GitHub ↗
(self, git_token: str, url: str)

Source from the content-addressed store, hash-verified

60 # URL / token helpers
61 # ------------------------------------------------------------------
62 def _add_git_token(self, git_token: str, url: str) -> str:
63 return _GitCommand._inject_token(url, git_token)
64
65 def remove_token_from_url(self, url: str) -> str:
66 return _GitCommand.strip_token_from_url(url)

Callers 2

config_git_tokenMethod · 0.95
pushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected