Skip to content

Commit

Permalink
fallback to parse update_time from svn log
Browse files Browse the repository at this point in the history
  • Loading branch information
keithws committed Sep 7, 2018
1 parent ba6647c commit d3ac17c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/svn/svn.js
Expand Up @@ -53,6 +53,12 @@ svn.parse = function(folder, cb) {
}
data.comment = stdout.match(/lines?\s*\n((.|\n)*)\n-{72}\n$/);
if (data.comment) data.comment = data.comment[1].replace(/\n/g, '');
if (!data.update_time) {
data.update_time = stdout.match(/-+\n(.*?)\n/);
if (data.update_time) data.update_time = new Date(
data.update_time[1].split(" | ")[2]
);
}
cb(null, data);
});
}
Expand Down

0 comments on commit d3ac17c

Please sign in to comment.