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

Skip to content

Commit ab1df03

Browse files
Ignore shallow clone coverage on appveyor
Appveyor uses old version of git so shallow clone always fails and lines 150-151 are not executed.
1 parent a170e60 commit ab1df03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pre_commit/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _complete_clone(self, ref, git_cmd):
142142
git_cmd('checkout', ref)
143143
git_cmd('submodule', 'update', '--init', '--recursive')
144144

145-
def _shallow_clone(self, ref, git_cmd):
145+
def _shallow_clone(self, ref, git_cmd): # pragma: windows no cover
146146
"""Perform a shallow clone of a repository and its submodules """
147147

148148
git_config = 'protocol.version=2'

0 commit comments

Comments
 (0)