Basically just set secsSinceUpdate to a large value and then in a try block try to check when it was last updated. If you get an error on checking git.updatedAt.getTime() (due to git.updatedAt being null) then it goes to an empty catch block and we assume the large value meaning that we perform an update.
Quick fix for #88.
Basically just set
secsSinceUpdate
to a large value and then in a try block try to check when it was last updated. If you get an error on checkinggit.updatedAt.getTime()
(due to git.updatedAt being null) then it goes to an empty catch block and we assume the large value meaning that we perform an update.