- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newGitRepo (0.11 sec)
-
src/cmd/go/internal/modfetch/codehost/git.go
localOK bool } func newGitRepoCached(ctx context.Context, remote string, localOK bool) (Repo, error) { return gitRepoCache.Do(gitCacheKey{remote, localOK}, func() (Repo, error) { return newGitRepo(ctx, remote, localOK) }) } func newGitRepo(ctx context.Context, remote string, localOK bool) (Repo, error) { r := &gitRepo{remote: remote} if strings.Contains(remote, "://") { // This is a remote path. var err error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 22:10:38 UTC 2024 - 27.4K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/vcs.go
branchesOnce sync.Once branches map[string]bool fetchOnce sync.Once fetchErr error } func newVCSRepo(ctx context.Context, vcs, remote string) (Repo, error) { if vcs == "git" { return newGitRepo(ctx, remote, false) } cmd := vcsCmds[vcs] if cmd == nil { return nil, fmt.Errorf("unknown vcs: %s %s", vcs, remote) } if !strings.Contains(remote, "://") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:50:24 UTC 2024 - 17.3K bytes - Viewed (0)