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
99 memset(&args,0,sizeof(args));99 memset(&args,0,sizeof(args));
100 args.base = fmt("%s/", prefix);100 args.base = fmt("%s/", prefix);
101 args.tree = commit->tree;101 args.tree = commit->tree;
102 args.time = commit->date;
102 cgit_print_snapshot_start(sat->mimetype, filename, item);103 cgit_print_snapshot_start(sat->mimetype, filename, item);
103 (*sat->write_func)(&args);104 (*sat->write_func)(&args);
104 return;105 return;