Skip to content

Commit 860d444

Browse files
committed
Attempt to fix infinite copy into existing folder
Looks like robocopy is confused what to do about symlinks
1 parent aafb942 commit 860d444

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

windows/internal/clone.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
@echo off
22

3-
:: The conda and wheels jobs are seperated on Windows, so we don't need to clone again.
3+
:: The conda and wheels jobs are separated on Windows, so we don't need to clone again.
44
if exist "%NIGHTLIES_PYTORCH_ROOT%" (
5+
:: Attempt to fix infinite copy of ittapi recursive symlinks on non-ephemeral runners
6+
if exist pytorch (
7+
rmdir /s /q pytorch
8+
)
59
robocopy "%NIGHTLIES_PYTORCH_ROOT%" pytorch\ /e /np /nfl
610
cd pytorch
711
)

0 commit comments

Comments
 (0)