diff --git a/src/git.js b/src/git.js index 828f570..e2851ed 100644 --- a/src/git.js +++ b/src/git.js @@ -86,10 +86,10 @@ function removeSection(section) { * @returns {string} Relative path to "$GIT_DIR/" */ function gitPath(path) { - let version = silentRun('git --version').stdout.trim(); - let [,mayor,minor,patch] = /.*(\d)\.(\d*)\.(\d*)/gm.exec(version); + const version = silentRun('git --version').stdout.trim(); + const [, mayor, minor] = /.*(\d)\.(\d*)\.(\d*)/gm.exec(version); - if (mayor >= 2 && minor >= 13){ + if (mayor >= 2 && minor >= 13) { return silentRun(` git rev-parse --git-path ${path}`).stdout.trim(); }