tag:help.appveyor.com,2012-11-13:/discussions/problems/930-git-checkout-and-submodulesAppVeyor: Discussion 2018-10-19T08:16:48Ztag:help.appveyor.com,2012-11-13:Comment/350337682014-10-22T14:31:11Z2014-10-22T14:31:11ZGit checkout and submodules?<div><p>"When I try this under Mono"</p>
<ul>
<li>correction, under Appveyor</li>
</ul></div>ajlennontag:help.appveyor.com,2012-11-13:Comment/350337682014-10-22T15:57:21Z2014-10-22T15:57:21ZGit checkout and submodules?<div><p>It looks very much as though the build folder, which I thought
was cloned and thus a git repo is actually something more akin to
an export. It doesn't seem to have .git ?</p></div>ajlennontag:help.appveyor.com,2012-11-13:Comment/350337682014-10-22T16:02:43Z2014-10-22T16:02:43ZGit checkout and submodules?<div><p>Do you have shallow_clone enabled?</p>
<p>-Feodor</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/350337682014-10-22T16:04:06Z2014-10-22T16:04:06ZGit checkout and submodules?<div><p>I did have. I thought that might be the problem and disabled it
but I still seem to get the same behaviour</p></div>ajlennontag:help.appveyor.com,2012-11-13:Comment/350337682014-10-22T16:55:07Z2014-10-22T16:55:07ZGit checkout and submodules?<div><p>I'm now seeing a different behaviour:</p>
<p>I see the git clone and checkout occur in the log</p>
<p>git config --global core.autocrlf false<br>
11git clone -q --branch=master
<a>git://github.com/DynamicDevices/mono.git</a>
C:\projects\mono-817<br>
12git checkout -qf abbb03e5acb7b631dbe0aee85c7a1777b90a9d4b</p>
<p>Unfortunately even though I configure the Windows git client not
to convert line endings the repo overrides this and the git
checkout is checking out with CRLF endings which then causes issues
under cygwin</p>
<p>Is there a way for me to override the git checkout command to
cause it to clone/checkout with the Cygwin git execuable?</p>
<p>Thanks, Alex</p></div>ajlennontag:help.appveyor.com,2012-11-13:Comment/350337682014-10-22T17:33:58Z2014-10-22T17:33:58ZGit checkout and submodules?<div><p>Right now there is no way to override git sequence unless you do
some sort of "bootstrap" project with lightweight repo and some
build script that clones your main repo during the build.</p>
<p>I'm just wondering why changing <code>core.autocrlf</code>
didn't work for you. Have you tried reading it back immediately
after changing? By default git is installed with
<code>core.autocrlf input</code> option.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/350337682014-10-22T17:43:37Z2014-10-22T17:43:37ZGit checkout and submodules?<div><p>I'm not a git expert but I've been reading up a little and the
way I understand it works is that you can set your preferred
configuration with core.autocrlf but if there is a setting in
.gitattributes then this will override what you have set
locally</p>
<p>There are conversion settings in .gitattributes which I believe
are setting the files to be checked out appropriately for the
platform. The problem then comes when we do the Win32 checkout but
then go into Cygwin for the build...</p>
<p>I'm taking a look now at some options to remove that
.gitattributes file from the fetched repo and rechecking out with
the line endings correct for Unix..</p>
<p>Thanks :) Alex</p></div>ajlennontag:help.appveyor.com,2012-11-13:Comment/350337682014-10-23T16:30:54Z2014-10-23T16:30:54ZGit checkout and submodules?<div><p>For some reason if I change core.autocrlf false (which I was
setting to ensure the endings weren't being changed) to
core.autocrlf input then all is well.</p>
<p>I can't quite understand why that should be, but am v. pleased
that I now have a Git repo downloading and building :)) Thanks</p></div>ajlennon