mirror of
https://git.zx2c4.com/cgit
synced 2025-07-12 11:14:33 +02:00
Set commit date on snapshot contents
The testsuite revealed that cgit snapshots don't set any useful timestamp on the files contained in the snapshot. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
2915483ef6
commit
2ff33a8a04
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ void cgit_print_snapshot(struct cacheitem *item, const char *head,
|
||||||
memset(&args,0,sizeof(args));
|
memset(&args,0,sizeof(args));
|
||||||
args.base = fmt("%s/", prefix);
|
args.base = fmt("%s/", prefix);
|
||||||
args.tree = commit->tree;
|
args.tree = commit->tree;
|
||||||
|
args.time = commit->date;
|
||||||
cgit_print_snapshot_start(sat->mimetype, filename, item);
|
cgit_print_snapshot_start(sat->mimetype, filename, item);
|
||||||
(*sat->write_func)(&args);
|
(*sat->write_func)(&args);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue