Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-18 13:33:46 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2022-07-20 07:39:11 +0300
commit517bed409397bc928a85fc128e5e81e4880b6136 (patch)
treeefedc8907eb71b9c98ebafdd9906cf939b3f7a76 /internal/gitaly/linguist/linguist.go
parent600197debaadea93b7b36f43e93493fc5fdc6946 (diff)
git: Move `ZeroOID` into `ObjectHash` structure
Move the `ZeroOID` variable into the `ObjectHash` structure to make it dependent on the hash function used.
Diffstat (limited to 'internal/gitaly/linguist/linguist.go')
-rw-r--r--internal/gitaly/linguist/linguist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/linguist/linguist.go b/internal/gitaly/linguist/linguist.go
index 2a1a92c60..ea7655f4a 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.