anchor.diff:      REM Clone from the origin repo
       SET REPOURL=%UPSTREAMURL%/%REPONAME%.git
       git clone !REPOURL! --quiet
  -    IF %ERRORLEVEL% NEQ 0 (
  +    IF ERRORLEVEL 1 (
           ECHO %REPONAME%: Git clone failed.
           GOTO exitOnError
       )
  
positive.code:         )
      )
  )
  cd %CURRDIR% >NUL
  GOTO exit
  
  REM Function to clone or update a repo
  
negative.code: REM Check if git is installed and available
  IF "%MSVC_VER%"=="" (
      git status >NUL 2>&1
      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"
  
  REM Initialise error check value
  SET ERROR=0
  