Re: Pan repository on Gitlab / manual sync

Petr Kovar <pknbe-VIXq6x/[email protected]>
Newsgroups gmane.comp.gnome.apps.pan.user
Organization NBE
Message-ID <[email protected]>
On Mon, 28 Oct 2019 17:40:16 +0100
Detlef Graef <[email protected]> wrote:

> Hi,
> 
> I want to keep my fork of Pan on Gitlab
> (https://gitlab.gnome.org/GNOME/pan) in sync with the upstream
> repository. But I don't know how to do this. I prefer a manual sync, but
> mirroring would also be ok.

I'd say the best way is to set remotes for upstream and your fork in your
clone:

git remote add upstream [email protected]:GNOME/pan.git
git remote add dgraef [email protected]:dgraef/pan.git

Then just create a new branch from upstream origin and push to your fork:

git checkout upstream/master
git checkout -b newbranch
git push dgraef newbranch

It's better to keep creating new branches rather than trying to keep your
fork's master branch in sync, I think.
 
> I've read this:
> 
> https://gitlab.gnome.org/help/workflow/repository_mirroring
> 
> "You can also manually trigger an update at most once every 5 minutes."
> 
> Question is how to do this? Somewhere in the Web-UI?
> 
> I've tried to set up a mirror, but I can only select "Push" direction.
> This ist not what I need:
> 
> Push: for mirroring a GitLab repository to another location.
> Pull: for mirroring a repository from another location to GitLab.

I think what that page describes is not keeping your fork updated
against the origin (upstream), but rather mirroring gitlab.gnome.org
to some other external hosting services. 

Cheers,
pk

_______________________________________________
Pan-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pan-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.