Skip to content

Commit 3e29060

Browse files
committed
---
yaml --- r: 6075 b: refs/heads/master c: 59cc863 h: refs/heads/master i: 6073: 4177b7f 6071: 2e3e123 v: v3
1 parent 0a85296 commit 3e29060

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: aa01876c95a3f50ef6129f1501d97c7a6bb0e856
2+
refs/heads/master: 59cc8636b72e944d22b065874646ad14d44010a9

trunk/doc/tutorial/build.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ function fileDates(file, c) {
2424
function takeTime(str) {
2525
return Number(str.match(/^(\S+)\s/)[1]) * 1000;
2626
}
27-
require("child_process").exec("git rev-list --timestamp HEAD -- " + file, function(err, stdout) {
27+
require("child_process").exec("git rev-list --timestamp HEAD -- " + file + ".md", function(err, stdout) {
2828
if (err != null) { console.log("Failed to run git rev-list"); return; }
2929
var history = stdout.split("\n");
3030
if (history.length && history[history.length-1] == "") history.pop();
31-
var created = history.length ? takeTime(history[0]) : Date.now();
31+
var created = history.length ? takeTime(history[history.length-1]) : Date.now();
3232
var modified = created;
33-
if (history.length > 1) modified = takeTime(history[history.length-1]);
33+
if (history.length > 1) modified = takeTime(history[0]);
3434
c(created, modified);
3535
});
3636
}

0 commit comments

Comments
 (0)