aboutsummaryrefslogtreecommitdiffstats
path: root/identity/identity.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-19 01:44:21 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:27 +0100
commit719303226096c905e602cb620dfdfbcf8fe106ad (patch)
tree32dff0b8b8dda96f6e02f178d3c096391e55c53b /identity/identity.go
parent71f9290fdae7551f3d3ada2179ece4084304d734 (diff)
downloadgit-bug-719303226096c905e602cb620dfdfbcf8fe106ad.tar.gz
identity: fix tests
Diffstat (limited to 'identity/identity.go')
-rw-r--r--identity/identity.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/identity/identity.go b/identity/identity.go
index b9d40967..809719e6 100644
--- a/identity/identity.go
+++ b/identity/identity.go
@@ -416,7 +416,7 @@ func (i *Identity) Validate() error {
return err
}
- if v.time < lastTime {
+ if v.commitHash != "" && v.time < lastTime {
return fmt.Errorf("non-chronological version (%d --> %d)", lastTime, v.time)
}