anchor.diff:  REM Check if git is installed and available
   IF "%MSVC_VER%"=="" (
       git status >NUL 2>&1
  -    IF %ERRORLEVEL% NEQ 0 (
  +    IF ERRORLEVEL 1 (
           ECHO A working copy of git was not found. To use this script you must first install git for windows.
           GOTO exitOnError
       )
   )
   
   REM Store current directory and ensure working directory is the location of current .bat
  -SET CURRDIR=%CD%
  -cd %~dp0
  +SET CURRDIR="%CD%"
  +cd "%~dp0"
   
   REM Initialise error check value
   SET ERROR=0
  
positive.code: SET PREBUILTDIR=prebuilt
  MKDIR %PREBUILTDIR% >NUL 2>&1
  powershell -nologo -noprofile -command "try { (New-Object Net.WebClient).DownloadFile('%DLURL%', '%PREBUILTDIR%\temp.zip') } catch {exit 1}"
  IF NOT %ERRORLEVEL% == 0 ( ECHO Failed downloading %DLURL% & EXIT /B 1 )
  powershell -nologo -noprofile -command "Add-Type -AssemblyName System.IO.Compression.FileSystem; $zip=[System.IO.Compression.ZipFile]::OpenRead('%PREBUILTDIR%\temp.zip'); foreach ($item in $zip.Entries) { try {$file=(Join-Path -Path .\%PREBUILTDIR% -ChildPath $item.FullName); $null=[System.IO.Directory]::CreateDirectory((Split-Path -Path $file)); [System.IO.Compression.ZipFileExtensions]::ExtractToFile($item,$file,$true)} catch {exit 1} }"
  IF NOT %ERRORLEVEL% == 0 ( ECHO Failed extracting downloaded archive & EXIT /B 1 )
  DEL /F /Q %PREBUILTDIR%\\temp.zip
  ECHO.
  EXIT /B %ERRORLEVEL%
  
  :exitOnError
  cd %CURRDIR%
  SET ERROR=1
  
  :exit
  
negative.code:     REM Clone from the origin repo
      SET REPOURL=%UPSTREAMURL%/%REPONAME%.git
      git clone !REPOURL! --quiet
      IF ERRORLEVEL 1 (
          ECHO %REPONAME%: Git clone failed.
          GOTO exitOnError
      )
  