History

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.

Lars Hjemli committed 19 years ago

Commit 2ff33a81 parent 29154831 file · +1 −0Browse files

Unified · Split

ui-snapshot.c+1−0
@@ -99,6 +99,7 @@ void cgit_print_snapshot(struct cacheitem *item, const char *head, · 98 unmodified lines
9999 memset(&args,0,sizeof(args));
100100 args.base = fmt("%s/", prefix);
101101 args.tree = commit->tree;
102+ args.time = commit->date;
102103 cgit_print_snapshot_start(sat->mimetype, filename, item);
103104 (*sat->write_func)(&args);
104105 return;