There was an error while loading. Please reload this page.
1 parent bee5c6f commit aa26301Copy full SHA for aa26301
repo_blob.go
@@ -5,13 +5,13 @@
5
package git
6
7
// CatFileBlob returns the blob corresponding to the given revision of the repository.
8
-func (repo *Repository) CatFileBlob(rev string) (*Blob, error) {
+func (r *Repository) CatFileBlob(rev string) (*Blob, error) {
9
rev, err := r.RevParse(rev, RevParseOptions{Timeout: opt.Timeout}) //nolint
10
if err != nil {
11
return nil, err
12
}
13
14
-typ, err := repo.CatFileType(rev)
+typ, err := r.CatFileType(rev)
15
16
17
@@ -26,7 +26,7 @@ func (repo *Repository) CatFileBlob(rev string) (*Blob, error) {
26
typ: ObjectBlob,
27
id: MustIDFromString(rev),
28
parent: &Tree{
29
-repo: repo,
+repo: r,
30
},
31
32
}, nil
0 commit comments