summaryrefslogtreecommitdiff
path: root/lib/config
diff options
context:
space:
mode:
Diffstat (limited to 'lib/config')
-rw-r--r--lib/config/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/config/utils.js b/lib/config/utils.js
index dcc83638..9646f8c0 100644
--- a/lib/config/utils.js
+++ b/lib/config/utils.js
@@ -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
}