mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-20 01:24:42 +04:00
Merge pull request #1234 from pre-commit/step_template_breakage
Fix step template breakage
This commit is contained in:
commit
cb36410c91
2 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
name_postfix: _latest_git
|
name_postfix: _latest_git
|
||||||
pre_test:
|
pre_test:
|
||||||
- task: UseRubyVersion@0
|
- task: UseRubyVersion@0
|
||||||
- template: step--git-install.yml
|
- template: step--git-install.yml@asottile
|
||||||
- bash: |
|
- bash: |
|
||||||
testing/get-swift.sh
|
testing/get-swift.sh
|
||||||
echo '##vso[task.prependpath]/tmp/swift/usr/bin'
|
echo '##vso[task.prependpath]/tmp/swift/usr/bin'
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@ def _adjust_args_and_chdir(args):
|
||||||
'directory?',
|
'directory?',
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if toplevel == '':
|
if toplevel == '': # pragma: no cover (old git)
|
||||||
raise FatalError(
|
raise FatalError(
|
||||||
'git toplevel unexpectedly empty! make sure you are not '
|
'git toplevel unexpectedly empty! make sure you are not '
|
||||||
'inside the `.git` directory of your repository.',
|
'inside the `.git` directory of your repository.',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue