Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alex <[email protected]>
  • Loading branch information
mx-psi and bzz authored Apr 1, 2021
1 parent f4201a5 commit dae94b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion licensedb/filer/filer.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ type gitFiler struct {
root *object.Tree
}

// FromGitURL returns a Filer that allows accessing all the files in a Git repository given its URL.
// FromGitURL returns a Filer that allows to access all the files in a Git repository's default branch given its URL.
// It keeps a shallow single-branch clone of the repository in memory.
func FromGitURL(url string) (Filer, error) {
repo, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{URL: url, Depth: 1})
if err != nil {
Expand Down

0 comments on commit dae94b5

Please sign in to comment.