X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=convert-cache.c;h=312fb61c8113431a2ed8f5b7d9037bb5e82b39a0;hb=6eb7ed5403b7d57d5ed7e30d0cd0b312888ee95c;hp=35191dffa7cba3de5297111c1ffa4253df6124a7;hpb=bfac5d94291bdb951ae3e739598a32bf868ea806;p=git.git diff --git a/convert-cache.c b/convert-cache.c index 35191dff..312fb61c 100644 --- a/convert-cache.c +++ b/convert-cache.c @@ -233,6 +233,13 @@ static int convert_date_line(char *dst, void **buf, unsigned long *sp) return len + datelen; } + /* + * Hacky hacky: one of the sparse old-style commits does not have + * any date at all, but we can fake it by using the committer date. + */ + if (*date == '\n' && strchr(next, '>')) + date = strchr(next, '>')+2; + return len + sprintf(dst, "%lu -0700\n", parse_oldstyle_date(date)); }