Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb36410

Browse files
authored
Merge pull request #1234 from pre-commit/step_template_breakage
Fix step template breakage
2 parents 023b337 + 2bdbd9e commit cb36410

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
name_postfix: _latest_git
3030
pre_test:
3131
- task: UseRubyVersion@0
32-
- template: step--git-install.yml
32+
- template: step--git-install.yml@asottile
3333
- bash: |
3434
testing/get-swift.sh
3535
echo '##vso[task.prependpath]/tmp/swift/usr/bin'

pre_commit/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _adjust_args_and_chdir(args):
129129
'directory?',
130130
)
131131
else:
132-
if toplevel == '':
132+
if toplevel == '': # pragma: no cover (old git)
133133
raise FatalError(
134134
'git toplevel unexpectedly empty! make sure you are not '
135135
'inside the `.git` directory of your repository.',

0 commit comments

Comments
 (0)