Skip to content

Commit 6a709f0

Browse files
committed
SQUASH???
1 parent f015fbb commit 6a709f0

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

repack-promisor.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,9 @@ static void copy_promisor_content(struct repository *repo,
107107
continue;
108108

109109
/* If <time> doesn't exist, retrieve it and add it to line */
110-
if (!parts[2]) {
111-
struct tm tm;
112-
localtime_r(&source_stat.st_mtim.tv_sec, &tm),
113-
strbuf_addch(&line, ' ');
114-
strbuf_addftime(&line, "%Y/%m/%d-%H:%M:%S", &tm, 0, 0);
115-
}
110+
if (!parts[2])
111+
strbuf_addf(&line, " %" PRIuMAX,
112+
(uintmax_t)source_stat.st_mtime);
116113

117114
/*
118115
* Add the finalized line to dest_to_write and dest_content if it

0 commit comments

Comments
 (0)