Skip to content
Snippets Groups Projects
Commit 2aea094a authored by Tamer Tas's avatar Tamer Tas
Browse files

pkg/util/git: import util pkg for git methods

parent 73c3096d
No related branches found
No related tags found
No related merge requests found
// Package git is a facade for git methods used by boilr
package git
import git "srcd.works/go-git.v4"
// CloneOptions are used when cloning a git repository
type CloneOptions git.CloneOptions
// Clone clones a git repository with the given options
func Clone(dir string, opts CloneOptions) error {
o := git.CloneOptions(opts)
_, err := git.PlainClone(dir, false, &o)
return err
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment