diff --git a/main.go b/main.go index 07c6321..a29bc13 100644 --- a/main.go +++ b/main.go @@ -264,7 +264,7 @@ func (x *xinStatus) updateHostInfo() error { s.commit = *commit s.upToDate = false - if s.commit == x.repoCommit { + if s.commit.hash == x.repoCommit.hash { s.upToDate = true } }