~sircmpwn/sr.ht-discuss

Mailing list for general sr.ht discussion, questions, and feedback.

5 5

Synchronizing code between sr.ht and github

Radtke, Damien
Details
Message ID
<84098ce4-4065-6128-bf0e-304ad3defc30@getbraintree.com>
DKIM signature
pass
Download raw message
I'm interested in moving some more repositories from my personal github 
account over to sr.ht, though I don't want to archive the github repos 
(at least, yet) because they're great for discoverability. Ideally, I 
would like to turn the github repos into mirrors of sr.ht. Is there any 
way to implement a commit hook in sr.ht that would be able to push 
changes over to github?

Thanks!
Details
Message ID
<BWXC9T5OA2D5.LRJXICRM1LB5@homura>
In-Reply-To
<84098ce4-4065-6128-bf0e-304ad3defc30@getbraintree.com> (view parent)
DKIM signature
pass
Download raw message
The easiest way at the moment is to set up a double remote:

git clone git@git.sr.ht:... foobar
cd foobar
git remote set-url --add origin git@github.com:...

Then when you `git push`, it'll push to both.
Radtke, Damien
Details
Message ID
<94fe185a-fff5-184e-ebe1-6ecfa74c7290@getbraintree.com>
In-Reply-To
<BWXC9T5OA2D5.LRJXICRM1LB5@homura> (view parent)
DKIM signature
pass
Download raw message
Ah I didn't realize that was doable with git, thanks for the pro-tip!

On 9/11/19 12:11 PM, Drew DeVault wrote:
> The easiest way at the moment is to set up a double remote:
>
> git clone git@git.sr.ht:... foobar
> cd foobar
> git remote set-url --add origin git@github.com:...
>
> Then when you `git push`, it'll push to both.
Details
Message ID
<20190912022751.GA711@admin.sibptus.ru>
In-Reply-To
<BWXC9T5OA2D5.LRJXICRM1LB5@homura> (view parent)
DKIM signature
missing
Download raw message
Drew DeVault wrote:
> The easiest way at the moment is to set up a double remote:
> 
> git clone git@git.sr.ht:... foobar
> cd foobar
> git remote set-url --add origin git@github.com:...
> 
> Then when you `git push`, it'll push to both.

Wow! Can mercurial also specify a double remote (a double default-push, that is)?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/
Details
Message ID
<87sgp2vt6w.fsf@disroot.org>
In-Reply-To
<20190912022751.GA711@admin.sibptus.ru> (view parent)
DKIM signature
pass
Download raw message
Victor Sudakov @ 2019-09-12 02:27 UTC:

> Drew DeVault wrote:
>> The easiest way at the moment is to set up a double remote:
>>
>> git clone git@git.sr.ht:... foobar
>> cd foobar
>> git remote set-url --add origin git@github.com:...
>>
>> Then when you `git push`, it'll push to both.
>
> Wow! Can mercurial also specify a double remote (a double default-push, that is)?

https://stackoverflow.com/questions/3262782/how-to-sync-two-or-more-mercurial-servers

--
                                Lugubris
Details
Message ID
<20190912132229.GA13724@admin.sibptus.ru>
In-Reply-To
<87sgp2vt6w.fsf@disroot.org> (view parent)
DKIM signature
missing
Download raw message
Lugubris wrote:
> 
> >> The easiest way at the moment is to set up a double remote:
> >>
> >> git clone git@git.sr.ht:... foobar
> >> cd foobar
> >> git remote set-url --add origin git@github.com:...
> >>
> >> Then when you `git push`, it'll push to both.
> >
> > Wow! Can mercurial also specify a double remote (a double default-push, that is)?
> 
> https://stackoverflow.com/questions/3262782/how-to-sync-two-or-more-mercurial-servers

Setting up a hook, I see.



-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/