summaryrefslogtreecommitdiff
path: root/date.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-30 20:03:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-30 20:04:18 (GMT)
commit80ffb7570f86fb8b671048a374f3c7990c45a27f (patch)
tree0dcefafb4f8df01ccf1aaa3c345541b22d5dc1df /date.c
parente6dfbcf12b0e70897818cb36903de0625931a5c6 (diff)
parent44b85e89d70da5ee7fc688d4a9c021f6a419b363 (diff)
downloadgit-80ffb7570f86fb8b671048a374f3c7990c45a27f.zip
git-80ffb7570f86fb8b671048a374f3c7990c45a27f.tar.gz
git-80ffb7570f86fb8b671048a374f3c7990c45a27f.tar.bz2
Merge branch 'jc/maint-filter-branch-epoch-date' into maint
In 1.7.9 era, we taught "git rebase" about the raw timestamp format but we did not teach the same trick to "filter-branch", which rolled a similar logic on its own. * jc/maint-filter-branch-epoch-date: t7003: add test to filter a branch with a commit at epoch date.c: Fix off by one error in object-header date parsing filter-branch: do not forget the '@' prefix to force git-timestamp
Diffstat (limited to 'date.c')
-rw-r--r--date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/date.c b/date.c
index 1fdcf7c..57331ed 100644
--- a/date.c
+++ b/date.c
@@ -624,7 +624,7 @@ static int match_object_header_date(const char *date, unsigned long *timestamp,
unsigned long stamp;
int ofs;
- if (*date < '0' || '9' <= *date)
+ if (*date < '0' || '9' < *date)
return -1;
stamp = strtoul(date, &end, 10);
if (*end != ' ' || stamp == ULONG_MAX || (end[1] != '+' && end[1] != '-'))