summaryrefslogtreecommitdiff
path: root/mtime.go
diff options
context:
space:
mode:
Diffstat (limited to 'mtime.go')
-rw-r--r--mtime.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/mtime.go b/mtime.go
index dd13a38..8ab07b8 100644
--- a/mtime.go
+++ b/mtime.go
@@ -162,6 +162,9 @@ func (repo *Repo) updateMtimes() bool {
}
func (repo *Repo) DidRepoChange() bool {
+ if repo.Times == nil {
+ repo.Times = new(GitTimes)
+ }
if repo.didFileChange(".git/HEAD", repo.Times.MtimeHead) {
return true
}