Can not handle future commit date
Created by: waterscar
When a repo contains future commit date, activity log will stop updating, and compare page always returns a 502.
2015-04-07_07:21:37.23853 2015-04-07T07:21:37.238Z 8948 TID-68rq8 WARN: Failed to parse commit f814fc50107b236295ccdaf100f29043bc0e340a - cannot parse commit time
2015-04-07_07:21:37.23870 2015-04-07T07:21:37.238Z 8948 TID-68rq8 WARN: /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/gitlab_git-7.0.1/lib/gitlab_git/repository.rb:261:in `each'
Gitlab shouldn't fail to handle future (not invalid) dates.
Here's how the commit look like:
commit f814fc50107b236295ccdaf100f29043bc0e340a
Merge: ff9de7d 62df227
Author: Some one <[email protected]>
Date: Sat Jun 23 11:36:01 2040 +0800