aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/internal/dotgit/dotgit.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/filesystem/internal/dotgit/dotgit.go')
-rw-r--r--storage/filesystem/internal/dotgit/dotgit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit.go b/storage/filesystem/internal/dotgit/dotgit.go
index 5e23e66..11b2512 100644
--- a/storage/filesystem/internal/dotgit/dotgit.go
+++ b/storage/filesystem/internal/dotgit/dotgit.go
@@ -518,7 +518,7 @@ func (d *DotGit) openAndLockPackedRefs(doCreate bool) (
if err != nil {
return nil, err
}
- if mtime == fi.ModTime() {
+ if mtime.Equal(fi.ModTime()) {
break
}
// The file has changed since we opened it. Close and retry.