aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/internal/dotgit/dotgit.go
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-12-04 03:27:50 +0100
committerferhat elmas <elmas.ferhat@gmail.com>2017-12-04 03:27:50 +0100
commit9ed1bb4d7fe09c8a5d2c6990a5084d9ed7116967 (patch)
tree410cf1876e3513a9f38494c2e730c694cc08a0e9 /storage/filesystem/internal/dotgit/dotgit.go
parent44c364fe3b7b8cdc0f9623afe870d6781a97ebb4 (diff)
downloadgo-git-9ed1bb4d7fe09c8a5d2c6990a5084d9ed7116967.tar.gz
dotgit: use Equal method of time.Time for equality
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.