add partial clone hack to fix autoupdate for windows

This commit is contained in:
Anthony Sottile 2023-05-02 09:54:25 -04:00
parent 4c0623963f
commit 420a15f87e

View file

@ -67,6 +67,8 @@ class RevInfo(NamedTuple):
rev, frozen = exact, rev
try:
# workaround for windows -- see #2865
cmd_output_b(*_git, 'show', f'{rev}:{C.MANIFEST_FILE}')
cmd_output(*_git, 'checkout', rev, '--', C.MANIFEST_FILE)
except CalledProcessError:
pass # this will be caught by manifest validating code