title: Running "Git-Clone" from Powershell giving errors even when it seems to work
body: <p>How do I interpret the errors coming out of this PowerShell script that calls &quot;Git Clone&quot; (actually using GitLab).  And can I clone an empty directory and cause it to work without getting errors?</p>
  <pre><code>$path1 = &quot;d:\GitPath&quot; 
  $path2 = &quot;${path1}\mycompany-mygroup-nealtestautomation01-map&quot;
  $gitLabHttp = &quot;http://git.mycompany.com/MyGroup/nealtestscriptaddedproject.git&quot;
  $gitLabHttp = &quot;http://git.mycompany.com/MyGroup/mycompany-gwcustomers-nealtestautomation01-map.git&quot; 
  rd $path2 
  cd $path1
  git clone $gitLabHttp --local --verbose
  </code></pre>
  <p>Output:</p>
  <pre><code>git : Cloning into 'mycompany-mygroup-nealtestautomation01210-map'...
  At D:\Scripts\GitCloneTest.ps1:7 char:1
  + git clone $gitLabHttp --local --verbose
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (Cloning into '...mation01-map'...:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
   
  warning: --local is ignored
  warning: You appear to have cloned an empty repository.
  </code></pre>
  <p>In the larger script where I want to use this code, I include this:</p>
  <pre><code>$ErrorActionPreference = &quot;Stop&quot;  #Special Poweshell Syntax to Stop on First Error 
  </code></pre>
  <p>so that it stops on the first error.</p>
  <p>Even when I run it on a non-empty project, I see red and errors similar to above (took the --local and --verbose off this run):</p>
  <pre><code>git : Cloning into 'xxx.yyy.CanInvToOutZZZ210.Map'...
  At D:\Scripts\GitCloneTest2.ps1:5 char:1
  + git clone $gitLabHttp
  + ~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (Cloning into 'E...Intl210.Map'...:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
  </code></pre>
  <p>If I run from windows command prompt, it runs nicely with some stats:</p>
  <pre><code>D:\GitGWCustomerMaps\Test2&gt;git clone myrealurlhidden 
  Cloning into 'XXX.YYY.CanInvToOutZZZZ210.Map'...
  remote: Counting objects: 29, done.
  remote: Compressing objects: 100% (28/28), done.
  remote: Total 29 (delta 9), reused 0 (delta 0)
  Unpacking objects: 100% (29/29), done.
  </code></pre>