Skip to content

Commit eaef506

Browse files
committed
Merge branch 'main' into dev-find-file
2 parents 77ddc4d + dbe415f commit eaef506

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/git/notes_nogogit.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ func GetNote(ctx context.Context, repo *Repository, commitID string, note *Note)
4646
commitID = commitID[2:]
4747
}
4848
if err != nil {
49-
log.Error("Unable to find git note corresponding to the commit %q. Error: %v", originalCommitID, err)
49+
// Err may have been updated by the SubTree we need to recheck if it's again an ErrNotExist
50+
if !IsErrNotExist(err) {
51+
log.Error("Unable to find git note corresponding to the commit %q. Error: %v", originalCommitID, err)
52+
}
5053
return err
5154
}
5255
}

0 commit comments

Comments
 (0)