]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bundle.c
parse_timestamp(): specify explicitly where we parse timestamps
[thirdparty/git.git] / bundle.c
index bbf4efa0a0a38ac8f13ee1c2178eff1d2127c802..f43bfcf5ff3a4a4b758b5b50bdc2eb43543aa274 100644 (file)
--- a/bundle.c
+++ b/bundle.c
@@ -227,7 +227,7 @@ static int is_tag_in_date_range(struct object *tag, struct rev_info *revs)
        line = memchr(line, '>', lineend ? lineend - line : buf + size - line);
        if (!line++)
                goto out;
-       date = strtoul(line, NULL, 10);
+       date = parse_timestamp(line, NULL, 10);
        result = (revs->max_age == -1 || revs->max_age < date) &&
                (revs->min_age == -1 || revs->min_age > date);
 out: