diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-01-07 13:01:16 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-07 13:01:16 -0800 |
commit | 04950c714107345c92c5287bcef8f1eab7318391 (patch) | |
tree | 84326599356881bc3bc389c5f8443ff0ac897e03 /t | |
parent | Merge branch 'br/imap-send-via-libcurl' (diff) | |
parent | approxidate: allow ISO-like dates far in the future (diff) | |
download | tgif-04950c714107345c92c5287bcef8f1eab7318391.tar.xz |
Merge branch 'jk/approxidate-avoid-y-d-m-over-future-dates'
Traditionally we tried to avoid interpreting date strings given by
the user as future dates, e.g. GIT_COMMITTER_DATE=2014-12-10 when
used early November 2014 was taken as "October 12, 2014" because it
is likely that a date in the future, December 10, is a mistake.
Loosen this and do not tiebreak by future-ness of the date when
(1) ISO-like format is used, and
(2) the string can make sense interpreted as both y-m-d and y-d-m.
* jk/approxidate-avoid-y-d-m-over-future-dates:
approxidate: allow ISO-like dates far in the future
pass TIME_DATE_NOW to approxidate future-check
Diffstat (limited to 't')
-rwxr-xr-x | t/t0006-date.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t0006-date.sh b/t/t0006-date.sh index e53cf6d36d..fac0986134 100755 --- a/t/t0006-date.sh +++ b/t/t0006-date.sh @@ -82,4 +82,7 @@ check_approxidate 'Jun 6, 5AM' '2009-06-06 05:00:00' check_approxidate '5AM Jun 6' '2009-06-06 05:00:00' check_approxidate '6AM, June 7, 2009' '2009-06-07 06:00:00' +check_approxidate '2008-12-01' '2008-12-01 19:20:00' +check_approxidate '2009-12-01' '2009-12-01 19:20:00' + test_done |