(path, baseDir string)
| 509 | } |
| 510 | |
| 511 | func (s *GitTokenStore) idFor(path, baseDir string) string { |
| 512 | if baseDir == "" { |
| 513 | return path |
| 514 | } |
| 515 | rel, err := filepath.Rel(baseDir, path) |
| 516 | if err != nil { |
| 517 | return path |
| 518 | } |
| 519 | return rel |
| 520 | } |
| 521 | |
| 522 | func (s *GitTokenStore) resolveAuthPath(auth *cliproxyauth.Auth) (string, error) { |
| 523 | if auth == nil { |