Cloning

Simon Peyton Jones simonpj at microsoft.com
Tue Jun 25 09:29:22 UTC 2019


Thanks.  I think I understand.  The model is


  *   Always start from a clone of the main repo; do not attempt to clone anyone else’s
  *   Add the extra repo as a remote
  *   Check out a branch from it.

I had not previously understood that -- thanks

S

From: Artem Pelenitsyn <a.pelenitsyn at gmail.com>
Sent: 25 June 2019 10:11
To: Simon Peyton Jones <simonpj at microsoft.com>
Cc: ghc-devs at haskell.org
Subject: Re: Cloning

Actually, I forgot to pull:

git remote add tdammers git at gitlab.haskell.org:tdammers/ghc.git<mailto:git at gitlab.haskell.org:tdammers/ghc.git>
> git pull tdammers
git checkout tdammers some-branch

And to post changes to, say, GHC's main repo:

git push origin some-branch

-- Artem

On Tue, 25 Jun 2019 at 12:04, Artem Pelenitsyn <a.pelenitsyn at gmail.com<mailto:a.pelenitsyn at gmail.com>> wrote:
Dear Simon,

In order for submodules to work, you still have to jump through the main repo. That is,

git clone --recursive https://gitlab.haskell.org/ghc/ghc<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.haskell.org%2Fghc%2Fghc&data=02%7C01%7Csimonpj%40microsoft.com%7C52fa9c0222914fd9d33608d6f94d006e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636970506449242123&sdata=b7df1dvmZW%2FRxJow7tiVYtFxopJkrk6AKad0aD%2Bsmwo%3D&reserved=0> tdammers
cd tdammers
git remote add tdammers git at gitlab.haskell.org:tdammers/ghc.git<mailto:git at gitlab.haskell.org:tdammers/ghc.git>
git checkout tdammers some-branch

Dear ghc-devs,
More generally, I'm actually wondering, why GHC's .gitsubmodules use relative paths.  Why not make them absolute?

--
Best wishes,
Artem

On Tue, 25 Jun 2019 at 11:52, Simon Peyton Jones via ghc-devs <ghc-devs at haskell.org<mailto:ghc-devs at haskell.org>> wrote:
What is the right procedure for cloning from someone else’s repo.
For example, I wanted to see what was going wrong for Tobias in #16615, so after some detective work I tried
git clone --recursive git at gitlab.haskell.org:tdammers/ghc.git<mailto:git at gitlab.haskell.org:tdammers/ghc.git> tdammers
but I got lots of errors:

Cloning into '/home/simonpj/code/tdammers/libffi-tarballs'...

setsockopt IPV6_TCLASS 8: Operation not permitted:

> GitLab: The project you were looking for could not be found.

fatal: Could not read from remote repository.



Please make sure you have the correct access rights

and the repository exists.

fatal: clone of 'git at gitlab.haskell.org:tdammers/libffi-tarballs.git' into submodule path '/home/simonpj/code/tdammers/libffi-tarballs' failed

Failed to clone 'libffi-tarballs'. Retry scheduled

Cloning into '/home/simonpj/code/tdammers/libraries/Cabal'...

setsockopt IPV6_TCLASS 8: Operation not permitted:

> GitLab: The project you were looking for could not be found.

fatal: Could not read from remote repository.



Please make sure you have the correct access rights

and the repository exists.

fatal: clone of 'git at gitlab.haskell.org:tdammers/packages/Cabal.git' into submodule path
etc etc.
So:

  *   What is a reliable way to get a MR onto my machine to test?
  *   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?
Thanks
Simon


_______________________________________________
ghc-devs mailing list
ghc-devs at haskell.org<mailto:ghc-devs at haskell.org>
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-devs&data=02%7C01%7Csimonpj%40microsoft.com%7C52fa9c0222914fd9d33608d6f94d006e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636970506449252119&sdata=Xm6rW0Ehl7R9lSSghWDc%2BzQOPKmeI4n92eMugmgcZbg%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190625/100a377c/attachment-0001.html>


More information about the ghc-devs mailing list