There was an error while loading. Please reload this page.
1 parent a1555ce commit 32dea58Copy full SHA for 32dea58
repo_blob.go
@@ -6,7 +6,12 @@ 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) {
9
-typ, err := repo.CatFileType(rev)
+revHash, err := r.RevParse(rev, RevParseOptions{Timeout: opt.Timeout}) //nolint
10
+if err != nil {
11
+return nil, err
12
+}
13
+
14
+typ, err := repo.CatFileType(revHash)
15
if err != nil {
16
return nil, err
17
}
0 commit comments