diff --git a/lib/platform/git/storage.js b/lib/platform/git/storage.js index 6b82fc0a9b075312fb3a1eb83fa60288bc20d55a..308b3fa41c6af1317653c1ae23ff7e2c22e33fec 100644 --- a/lib/platform/git/storage.js +++ b/lib/platform/git/storage.js @@ -113,6 +113,12 @@ class Storage { ) / 10; logger.info({ cloneSeconds }, 'git clone completed'); } + try { + const latestCommitDate = (await git.log({ n: 1 })).latest.date; + logger.debug({ latestCommitDate }, 'latest commit'); + } catch (err) /* istanbul ignore next */ { + logger.warn({ err }, 'Cannot retrieve latest commit date'); + } if (global.gitAuthor) { logger.info({ gitAuthor: global.gitAuthor }, 'Setting git author');