diff options
author | Will Chandler <wchandler@gitlab.com> | 2022-07-20 18:12:00 +0300 |
---|---|---|
committer | Will Chandler <wchandler@gitlab.com> | 2022-07-20 18:12:00 +0300 |
commit | a3fe784ea748c52c280c5c9a5a47990c7a6ad95a (patch) | |
tree | 02961001233edc9d3923012c797f590c881ed049 /internal/gitaly/linguist/linguist.go | |
parent | 1c907781819bf8810e15578f3d4d2b25e3ca1053 (diff) | |
parent | 4fca4bcdbfba0fc1a332bd922e60404cf3ff225c (diff) |
Merge branch 'pks-git-objectids-sha256' into 'master'
git: Encapsulate object hash specific information
See merge request gitlab-org/gitaly!4720
Diffstat (limited to 'internal/gitaly/linguist/linguist.go')
-rw-r--r-- | internal/gitaly/linguist/linguist.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/linguist/linguist.go b/internal/gitaly/linguist/linguist.go index 145e4f8b9..696f70a4f 100644 --- a/internal/gitaly/linguist/linguist.go +++ b/internal/gitaly/linguist/linguist.go @@ -192,7 +192,7 @@ func (inst *Instance) enryStats(ctx context.Context, repo *localrepo.Repo, commi skipDeleted := func(result *gitpipe.RevisionResult) bool { // Skip files that are deleted. - if result.OID.IsZeroOID() { + if git.ObjectHashSHA1.IsZeroOID(result.OID) { // It's a little bit of a hack to use this skip // function, but for every file that's deleted, // remove the stats. |