summarylogtreecommitdiffstats
path: root/expire-from-source-date-epoch.patch
blob: a4d698623ba227f19eaaa5e0cb71f55bb9c57501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/Gruntfile.js	2021-09-23 04:25:41.069024593 -0500
+++ b/Gruntfile.js	2021-09-23 04:26:20.878766965 -0500
@@ -171,9 +171,7 @@
   });
 
   grunt.registerTask('getExpireTime', () => {
-    grunt.task.requires('gitinfo');
-    const gitinfo = grunt.config.get('gitinfo');
-    const committed = gitinfo.local.branch.current.lastCommitTime;
+    const committed = parseInt(process.env.SOURCE_DATE_EPOCH, 10) * 1000;
     const buildCreation = Date.parse(committed);
     const buildExpiration = buildCreation + 1000 * 60 * 60 * 24 * 90;
     grunt.file.write(