import "github.com/ubclaunchpad/inertia/daemon/inertiad/git"
Package git provides functions for interacting with git repositories
var ( // ErrInvalidGitAuthentication is returned when handshake with a git remote fails ErrInvalidGitAuthentication = errors.New("git authentication failed") )
AuthFailedErr attaches the daemon key in the error message
func InitializeRepository(remoteURL string, opts RepoOptions, w io.Writer) (*gogit.Repository, error)
InitializeRepository sets up a project repository for the first time
SimplifyGitErr checks errors that involve git remote operations and simplifies them to ErrInvalidGitAuthentication if possible
func UpdateRepository(repo *gogit.Repository, opts RepoOptions, out io.Writer) error
UpdateRepository pulls and checkouts given branch from repository
type RepoOptions struct { Directory string Branch string Auth transport.AuthMethod }
RepoOptions declares options for a project repository
Package git imports 10 packages (graph) and is imported by 1 packages. Updated 2021-01-28. Refresh now. Tools for package owners.