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

Skip to content

Commit 420a15f

Browse files
committed
add partial clone hack to fix autoupdate for windows
1 parent 4c06239 commit 420a15f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pre_commit/commands/autoupdate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def update(self, tags_only: bool, freeze: bool) -> RevInfo:
6767
rev, frozen = exact, rev
6868

6969
try:
70+
# workaround for windows -- see #2865
71+
cmd_output_b(*_git, 'show', f'{rev}:{C.MANIFEST_FILE}')
7072
cmd_output(*_git, 'checkout', rev, '--', C.MANIFEST_FILE)
7173
except CalledProcessError:
7274
pass # this will be caught by manifest validating code

0 commit comments

Comments
 (0)