Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
date.c: fix unsigned time_t comparison
tm_to_time_t() returns (time_t)-1 when it sees an error. On platforms with unsigned time_t, this value will be larger than any valid timestamp and will break the "Is this older than 10 days in the future?" check. Signed-off-by: Mike Gorchak <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information