mirror of https://github.com/status-im/codimd.git
Merge pull request #1051 from SISheogorath/feature/fullversion
Fix wrong reading from commit
This commit is contained in:
commit
4a39017fe0
|
@ -33,7 +33,7 @@ exports.getGitCommit = function getGitCommit (repodir) {
|
||||||
reference = reference.substr(5).replace('\n', '')
|
reference = reference.substr(5).replace('\n', '')
|
||||||
reference = fs.readFileSync(path.resolve(repodir + '/.git', reference), 'utf8')
|
reference = fs.readFileSync(path.resolve(repodir + '/.git', reference), 'utf8')
|
||||||
}
|
}
|
||||||
reference = reference.substr(5).replace('\n', '')
|
reference = reference.replace('\n', '')
|
||||||
return reference
|
return reference
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue