Skip to content

Commit e0399f0

Browse files
committed
1 parent d25723e commit e0399f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

windows/internal/clone.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ if exist "%NIGHTLIES_PYTORCH_ROOT%" (
77
rmdir /s /q pytorch
88
)
99
:: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
10-
robocopy "%NIGHTLIES_PYTORCH_ROOT%" pytorch\ /e /np /nfl /sl
10+
:: Without symlink handling, robocopy could get into an infinite loop with ittapi. With /sl,
11+
:: symlink is ignored so functorch/docs/source/notebooks won't work. The correct option is
12+
:: /xj to exclude junction point (what the heck does that even mean Microsoft?)
13+
robocopy "%NIGHTLIES_PYTORCH_ROOT%" pytorch\ /e /np /nfl /xjd
1114
cd pytorch
1215
)
1316
if exist "%NIGHTLIES_PYTORCH_ROOT%" goto submodule

0 commit comments

Comments
 (0)