Merge pull request #1051 from SISheogorath/feature/fullversion

Fix wrong reading from commit
This commit is contained in:
Christoph (Sheogorath) Kern 2018-11-12 14:21:03 +01:00 committed by GitHub
commit 4a39017fe0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}