From 4b0528ac4fdcab4a72013dc3f3f48bd27bea74fd Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Mon, 12 Nov 2018 11:17:36 +0100 Subject: [PATCH] Fix wrong reading from commit Right now we use a substr after reading the commit. That's definitely wrong and leads to wrong commit hashes since the first 5 chars are missing. This patch removes the substr usage here and this way fixes the generated links. Signed-off-by: Sheogorath --- lib/config/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/utils.js b/lib/config/utils.js index dcc836380..9646f8c0e 100644 --- a/lib/config/utils.js +++ b/lib/config/utils.js @@ -33,7 +33,7 @@ exports.getGitCommit = function getGitCommit (repodir) { reference = reference.substr(5).replace('\n', '') reference = fs.readFileSync(path.resolve(repodir + '/.git', reference), 'utf8') } - reference = reference.substr(5).replace('\n', '') + reference = reference.replace('\n', '') return reference }