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

Function _resolve_git_token

modelscope/hub/repository.py:27–31  ·  view source on GitHub ↗
(auth_token: Optional[str])

Source from the content-addressed store, hash-verified

25
26
27def _resolve_git_token(auth_token: Optional[str]) -> Optional[str]:
28 if auth_token:
29 return auth_token
30 from modelscope.hub.api import ModelScopeConfig
31 return ModelScopeConfig.get_git_token()
32
33
34def _clone_if_needed(git_wrapper: GitCommandWrapper, base_dir: str,

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls 1

get_git_tokenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…