projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Various transport programs
[git.git]
/
convert-cache.c
diff --git
a/convert-cache.c
b/convert-cache.c
index
35191df
..
312fb61
100644
(file)
--- 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;
}
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));
}
return len + sprintf(dst, "%lu -0700\n", parse_oldstyle_date(date));
}