mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #2866 from pre-commit/autoupdate-hack-windows
add partial clone hack to fix autoupdate for windows
This commit is contained in:
commit
0fd2501503
1 changed files with 2 additions and 0 deletions
|
|
@ -67,6 +67,8 @@ class RevInfo(NamedTuple):
|
||||||
rev, frozen = exact, rev
|
rev, frozen = exact, rev
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# workaround for windows -- see #2865
|
||||||
|
cmd_output_b(*_git, 'show', f'{rev}:{C.MANIFEST_FILE}')
|
||||||
cmd_output(*_git, 'checkout', rev, '--', C.MANIFEST_FILE)
|
cmd_output(*_git, 'checkout', rev, '--', C.MANIFEST_FILE)
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
pass # this will be caught by manifest validating code
|
pass # this will be caught by manifest validating code
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue