diff --git a/src/installer/gitRevParse.ts b/src/installer/gitRevParse.ts index 26a146c7b..ed2a48f49 100644 --- a/src/installer/gitRevParse.ts +++ b/src/installer/gitRevParse.ts @@ -26,14 +26,5 @@ export function gitRevParse(cwd = process.cwd()): GitRevParseResult { // Normalize for Windows .map(slash) - // Git rev-parse returns unknown options as is. - // If we get --absolute-git-dir in the output, - // it probably means that an old version of Git has been used. - // There seem to be a bug with --git-common-dir that was fixed in 2.13.0. - // See issues above. - if (gitCommonDir === '--git-common-dir') { - throw new Error('Husky requires Git >= 2.13.0, please upgrade Git') - } - return { prefix, gitCommonDir } }