tag:help.appveyor.com,2012-11-13:/discussions/problems/28374-git-clone-fails-with-the-directory-name-is-invalidAppVeyor: Discussion 2020-10-11T23:27:48Ztag:help.appveyor.com,2012-11-13:Comment/487132262020-10-11T03:56:43Z2020-10-11T03:56:47Zgit clone fails with 'The directory name is invalid.'<div><p>My builds always fail <a href="https://ci.appveyor.com/project/AJChapman/formatting/build/job/x9oko28cqwvqms6g">right at the start</a>:</p>
<pre>
<code>Build started
git clone -q --branch=master https://github.com/AJChapman/formatting.git C:\projects\formatting
The directory name is invalid.</code>
</pre>
<p>I haven't been able to find anyone else having this problem, so I assume it's something pathological in my config, but I have no idea what!</p></div>Alex Chapmantag:help.appveyor.com,2012-11-13:Comment/487132262020-10-11T16:18:03Z2020-10-11T16:18:03Zgit clone fails with 'The directory name is invalid.'<div><p>Hi Alex,</p>
<p>This line is the issue: <a href="https://github.com/AJChapman/formatting/blob/master/appveyor.yml#L19">https://github.com/AJChapman/formatting/blob/master/appveyor.yml#L19</a></p>
<p>Results <em>without</em> line: <a href="https://ci.appveyor.com/project/FeodorFitsner/formatting/builds/35687573">https://ci.appveyor.com/project/FeodorFitsner/formatting/builds/356...</a><br>
Results <em>with</em> line: <a href="https://ci.appveyor.com/project/FeodorFitsner/formatting/builds/35687571">https://ci.appveyor.com/project/FeodorFitsner/formatting/builds/356...</a></p>
<p>You can re-define <code>TMP</code> variable later in the build, say in <code>before_test</code> section.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/487132262020-10-11T23:27:48Z2020-10-11T23:27:48Zgit clone fails with 'The directory name is invalid.'<div><p>Thanks, it seems to work when I simply remove the setting of the TMP.<br>
Setting it elsewhere just seems to break other things.</p></div>Alex Chapman