From dc612f0219a6c919b4f5a9be18c43b4b3ddce99a Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 6 Dec 2019 09:08:26 -0800 Subject: [PATCH 1/2] Fix step template breakage --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5b57e894..e797b0c8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -29,7 +29,7 @@ jobs: name_postfix: _latest_git pre_test: - task: UseRubyVersion@0 - - template: step--git-install.yml + - template: step--git-install.yml@asottile - bash: | testing/get-swift.sh echo '##vso[task.prependpath]/tmp/swift/usr/bin' From 2bdbd9e7a0f1556921946bc441b595d6689fbcd0 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 6 Dec 2019 09:27:19 -0800 Subject: [PATCH 2/2] Fix for newest git --- pre_commit/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/main.py b/pre_commit/main.py index 772c69cb..686ddc4c 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -129,7 +129,7 @@ def _adjust_args_and_chdir(args): 'directory?', ) else: - if toplevel == '': + if toplevel == '': # pragma: no cover (old git) raise FatalError( 'git toplevel unexpectedly empty! make sure you are not ' 'inside the `.git` directory of your repository.',