mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
Ignore shallow clone coverage on appveyor
Appveyor uses old version of git so shallow clone always fails and lines 150-151 are not executed.
This commit is contained in:
@@ -142,7 +142,7 @@ class Store(object):
|
||||
git_cmd('checkout', ref)
|
||||
git_cmd('submodule', 'update', '--init', '--recursive')
|
||||
|
||||
def _shallow_clone(self, ref, git_cmd):
|
||||
def _shallow_clone(self, ref, git_cmd): # pragma: windows no cover
|
||||
"""Perform a shallow clone of a repository and its submodules """
|
||||
|
||||
git_config = 'protocol.version=2'
|
||||
|
||||
Reference in New Issue
Block a user