summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSheogorath2018-11-12 11:17:36 +0100
committerSheogorath2018-11-12 11:18:38 +0100
commit4b0528ac4fdcab4a72013dc3f3f48bd27bea74fd (patch)
treedc3b21c9aac78c85bda45844e370dd97b96d7bd1 /lib
parentbcc914a7735290b86e0df428aed75dabdf9f1eca (diff)
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 <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r--lib/config/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config/utils.js b/lib/config/utils.js
index dcc83638..9646f8c0 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
}