mirror of https://github.com/status-im/codimd.git
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>
This commit is contained in:
parent
bcc914a773
commit
4b0528ac4f
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue