File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -118,10 +118,11 @@ func FromGitURL(url string) (Filer, error) {
118
118
if err != nil {
119
119
return nil , errors .Wrapf (err , "could not clone repo from %s" , url )
120
120
}
121
- return fromGit (repo , "" )
121
+ return FromGit (repo , "" )
122
122
}
123
123
124
- func fromGit (repo * git.Repository , headRef plumbing.ReferenceName ) (Filer , error ) {
124
+ // FromGit returns a Filer that allows accessing all the files in a Git repository
125
+ func FromGit (repo * git.Repository , headRef plumbing.ReferenceName ) (Filer , error ) {
125
126
var head * plumbing.Reference
126
127
var err error
127
128
if headRef == "" {
@@ -242,7 +243,7 @@ func FromSiva(path string) (Filer, error) {
242
243
if err != nil {
243
244
return nil , errors .Wrapf (err , "failed to iterate over references in Siva file %s" , path )
244
245
}
245
- return fromGit (repo , head )
246
+ return FromGit (repo , head )
246
247
}
247
248
248
249
type zipNode struct {
You can’t perform that action at this time.
0 commit comments