mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-23 19:34:14 +00:00
Merge pull request #1051 from SISheogorath/feature/fullversion
Fix wrong reading from commit
This commit is contained in:
commit
4a39017fe0
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue