<div dir="ltr"><div dir="ltr"><div></div><div>Actually, I forgot to pull:</div><div><br></div><div>git remote add tdammers git@gitlab.haskell.org:tdammers/ghc.git</div><div>> git pull <span class="gmail-gr_ gmail-gr_42 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_run_anim gmail-ContextualSpelling" id="gmail-42">tdammers</span></div><div>git checkout tdammers some-branch</div><div><br></div><div>And to post changes to, say, GHC's main repo:</div><div><br></div><div>git push origin some-branch</div><div><br></div><div>-- Artem<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 25 Jun 2019 at 12:04, Artem Pelenitsyn <<a href="mailto:a.pelenitsyn@gmail.com">a.pelenitsyn@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear Simon,</div><div><br></div><div>In order for submodules to work, you still have to jump through the main repo. That is,</div><div><br></div><div>git clone --recursive <a href="https://gitlab.haskell.org/ghc/ghc" target="_blank">https://gitlab.haskell.org/ghc/ghc</a> tdammers<br>cd tdammers<br>git remote add tdammers git@gitlab.haskell.org:tdammers/ghc.git<br>git checkout tdammers some-branch</div><div><br></div><div>Dear ghc-devs,<br></div><div>More generally, I'm actually wondering, why GHC's .gitsubmodules use relative paths. Why not make them absolute?</div><div><br></div><div>--</div><div>Best wishes,</div><div>Artem<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 25 Jun 2019 at 11:52, Simon Peyton Jones via ghc-devs <<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-GB">
<div class="gmail-m_6568133106989545077gmail-m_2319390312982103604WordSection1">
<p class="MsoNormal">What is the right procedure for cloning from someone else’s repo.<u></u><u></u></p>
<p class="MsoNormal">For example, I wanted to see what was going wrong for Tobias in #16615, so after some detective work I tried<u></u><u></u></p>
<p class="MsoNormal" style="text-indent:36pt">git clone --recursive git@gitlab.haskell.org:tdammers/ghc.git tdammers<u></u><u></u></p>
<p class="MsoNormal">but I got lots of errors:<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">Cloning into '/home/simonpj/code/tdammers/libffi-tarballs'...<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">setsockopt IPV6_TCLASS 8: Operation not permitted:<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">> GitLab: The project you were looking for could not be found.<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">fatal: Could not read from remote repository.<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code"><u></u> <u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">Please make sure you have the correct access rights<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">and the repository exists.<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">fatal: clone of 'git@gitlab.haskell.org:tdammers/libffi-tarballs.git' into submodule path '/home/simonpj/code/tdammers/libffi-tarballs' failed<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">Failed to clone 'libffi-tarballs'. Retry scheduled<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">Cloning into '/home/simonpj/code/tdammers/libraries/Cabal'...<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">setsockopt IPV6_TCLASS 8: Operation not permitted:<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">> GitLab: The project you were looking for could not be found.<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">fatal: Could not read from remote repository.<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code"><u></u> <u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">Please make sure you have the correct access rights<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">and the repository exists.<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code">fatal: clone of 'git@gitlab.haskell.org:tdammers/packages/Cabal.git' into submodule path <u></u><u></u></p>
<p class="MsoNormal">etc etc.<u></u><u></u></p>
<p class="MsoNormal">So:<u></u><u></u></p>
<ul style="margin-top:0cm" type="disc">
<li class="gmail-m_6568133106989545077gmail-m_2319390312982103604MsoListParagraph" style="margin-left:0cm">What is a reliable way to get a MR onto my machine to test?<u></u><u></u></li><li class="gmail-m_6568133106989545077gmail-m_2319390312982103604MsoListParagraph" style="margin-left:0cm">If I make a fix, what is the workflow to push that fix back to the author -- presumably I can’t push to their repo?<u></u><u></u></li></ul>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Simon<u></u><u></u></p>
<p class="gmail-m_6568133106989545077gmail-m_2319390312982103604Code"><u></u> <u></u></p>
</div>
</div>_______________________________________________<br>ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div>
</blockquote></div></div>