Skip to content

Commit 4b0528a

Browse files
committed
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 <[email protected]>
1 parent bcc914a commit 4b0528a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ exports.getGitCommit = function getGitCommit (repodir) {
3333
reference = reference.substr(5).replace('\n', '')
3434
reference = fs.readFileSync(path.resolve(repodir + '/.git', reference), 'utf8')
3535
}
36-
reference = reference.substr(5).replace('\n', '')
36+
reference = reference.replace('\n', '')
3737
return reference
3838
}
3939

0 commit comments

Comments
 (0)