aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-12-04 14:56:58 +0100
committerGitHub <noreply@github.com>2017-12-04 14:56:58 +0100
commit02723bf0e5b97fc7855467b2fad700a4f318ab3e (patch)
tree410cf1876e3513a9f38494c2e730c694cc08a0e9
parent44c364fe3b7b8cdc0f9623afe870d6781a97ebb4 (diff)
parent9ed1bb4d7fe09c8a5d2c6990a5084d9ed7116967 (diff)
downloadgo-git-02723bf0e5b97fc7855467b2fad700a4f318ab3e.tar.gz
Merge pull request #674 from ferhatelmas/time-equal
dotgit: use Equal method of time.Time for equality
-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.