MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / gitAuth

Method gitAuth

internal/store/gitstore.go:581–590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

579}
580
581func (s *GitTokenStore) gitAuth() transport.AuthMethod {
582 if s.username == "" && s.password == "" {
583 return nil
584 }
585 user := s.username
586 if user == "" {
587 user = "git"
588 }
589 return &http.BasicAuth{Username: user, Password: s.password}
590}
591
592func (s *GitTokenStore) relativeToRepo(path string) (string, error) {
593 repoDir := s.repoDirSnapshot()

Callers 2

EnsureRepositoryMethod · 0.95
commitAndPushLockedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected