diff options
author | ferhat elmas <elmas.ferhat@gmail.com> | 2017-12-04 03:27:50 +0100 |
---|---|---|
committer | ferhat elmas <elmas.ferhat@gmail.com> | 2017-12-04 03:27:50 +0100 |
commit | 9ed1bb4d7fe09c8a5d2c6990a5084d9ed7116967 (patch) | |
tree | 410cf1876e3513a9f38494c2e730c694cc08a0e9 /storage/filesystem/internal/dotgit/dotgit.go | |
parent | 44c364fe3b7b8cdc0f9623afe870d6781a97ebb4 (diff) | |
download | go-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.go | 2 |
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. |