Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 9ed1bb4

Browse files
committed
dotgit: use Equal method of time.Time for equality
1 parent 44c364f commit 9ed1bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/filesystem/internal/dotgit/dotgit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ func (d *DotGit) openAndLockPackedRefs(doCreate bool) (
518518
if err != nil {
519519
return nil, err
520520
}
521-
if mtime == fi.ModTime() {
521+
if mtime.Equal(fi.ModTime()) {
522522
break
523523
}
524524
// The file has changed since we opened it. Close and retry.

0 commit comments

Comments
 (0)