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
1 changed files with 1 additions and 1 deletions

View File

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