File tree 3 files changed +16
-2
lines changed
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ TAGS ?=
136
136
TAGS_SPLIT := $(subst $(COMMA ) , ,$(TAGS ) )
137
137
TAGS_EVIDENCE := $(MAKE_EVIDENCE_DIR ) /tags
138
138
139
- TEST_TAGS ?= sqlite sqlite_unlock_notify
139
+ TEST_TAGS ?= $( TAGS_SPLIT ) sqlite sqlite_unlock_notify
140
140
141
141
TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE ) $(FOMANTIC_WORK_DIR ) /node_modules $(DIST ) $(MAKE_EVIDENCE_DIR ) $(AIR_TMP_DIR ) $(GO_LICENSE_TMP_DIR )
142
142
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ func TestReadingBlameOutputSha256(t *testing.T) {
14
14
ctx , cancel := context .WithCancel (context .Background ())
15
15
defer cancel ()
16
16
17
+ if isGogit {
18
+ t .Skip ("Skipping test since gogit does not support sha256" )
19
+ return
20
+ }
21
+
17
22
t .Run ("Without .git-blame-ignore-revs" , func (t * testing.T ) {
18
23
repo , err := OpenRepository (ctx , "./tests/repos/repo5_pulls_sha256" )
19
24
assert .NoError (t , err )
Original file line number Diff line number Diff line change 6
6
7
7
package git
8
8
9
- import "github.com/go-git/go-git/v5/plumbing"
9
+ import (
10
+ "errors"
11
+
12
+ "github.com/go-git/go-git/v5/plumbing"
13
+ )
10
14
11
15
func (repo * Repository ) getTree (id ObjectID ) (* Tree , error ) {
12
16
gogitTree , err := repo .gogitRepo .TreeObject (plumbing .Hash (id .RawValue ()))
13
17
if err != nil {
18
+ if errors .Is (err , plumbing .ErrObjectNotFound ) {
19
+ return nil , ErrNotExist {
20
+ ID : id .String (),
21
+ }
22
+ }
14
23
return nil , err
15
24
}
16
25
You can’t perform that action at this time.
0 commit comments