|
|
@ -329,8 +329,9 @@ app.runOnStartup = function() { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
if (global.sourcecodeVersion == null) { |
|
|
|
if (global.sourcecodeVersion == null && fs.existsSync('.git')) { |
|
|
|
simpleGit(".").log(["-n 1"], function(err, log) { |
|
|
|
if (err) { return console.error('error accessing git repo:', err); } |
|
|
|
global.sourcecodeVersion = log.all[0].hash.substring(0, 10); |
|
|
|
global.sourcecodeDate = log.all[0].date.substring(0, "0000-00-00".length); |
|
|
|
}); |
|
|
|