package gitrepo

import "cmd/go/internal/modfetch/gitrepo"

Package gitrepo provides a Git-based implementation of codehost.Repo.

Index

Functions

func LocalRepo

func LocalRepo(remote, root string) (codehost.Repo, error)

LocalRepo is like Repo but accepts both Git remote references and paths to repositories on the local file system. The returned repo reports the given root as its module root.

func Repo

func Repo(remote, root string) (codehost.Repo, error)

Repo returns the code repository at the given Git remote reference. The returned repo reports the given root as its module root.

Source Files

fetch.go

Version
v1.11.0-beta.1
Published
Jun 26, 2018
Platform
linux/amd64
Imports
13 packages
Last checked
1 minute ago

Tools for package owners.