From c7976dfdf96f9bae34468d2e1369871af67de743 Mon Sep 17 00:00:00 2001 From: typicode Date: Tue, 21 Jan 2020 22:52:14 +0100 Subject: [PATCH] Remove version check in gitRevParse.ts --- src/installer/gitRevParse.ts | 9 --------- 1 file changed, 9 deletions(-) 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 } }