Discussion:
[savannah-help-public] [GSoC] Quick Update on Fuzzing
Werner LEMBERG
2018-04-30 17:50:49 UTC
Permalink
Dear Savannah hackers,
What's more, Werner agreed to have an official mirror of FreeType at
https://github.com/freetype/freetype. As of now, I am not sure if
Savannah supports server-side git hooks (does anyone know?).
please answer this...
I know that cvs root access is definitely prohibited, I couldn't
find anything on git though. Alternatively, if server-side hooks
are no option, we could also have a cron job that updates the mirror
once an hour or so.
And this :-)


Werner
Bob Proulx
2018-04-30 22:20:28 UTC
Permalink
Hello Werner,
Post by Werner LEMBERG
What's more, Werner agreed to have an official mirror of FreeType at
https://github.com/freetype/freetype. As of now, I am not sure if
Savannah supports server-side git hooks (does anyone know?).
please answer this...
Yes. Savannah's repositories allow hooks. There is no automated
mechanism for installing them however. Please simply ask the Savannah
Hacker team to install them. We are happy to do so.
Post by Werner LEMBERG
I know that cvs root access is definitely prohibited, I couldn't
find anything on git though. Alternatively, if server-side hooks
are no option, we could also have a cron job that updates the mirror
once an hour or so.
And this :-)
Same thing. We are happy to do whatever makes sense. There are a
handful of projects with cron jobs to sync (some by rsync, some by
other sync'ing methods) their repositories.

I assume that question isn't about just doing it by cron though
because any party can mirror using cron. I am guessing the real
question is can it be done in a hook so that most of the time (when it
doesn't fail for some reason) that it will be event driven and
immediately available in the mirror.

Bob
a***@hasitzka.com
2018-04-30 22:42:47 UTC
Permalink
Hi Bob,
Post by Bob Proulx
Yes. Savannah's repositories allow hooks. There is no automated
mechanism for installing them however. Please simply ask the Savannah
Hacker team to install them. We are happy to do so.
These are amazing news :)
Post by Bob Proulx
I assume that question isn't about just doing it by cron though because
any party can mirror using cron. I am guessing the real question is ...
Exactly, cron jobs would only be the backup option.

I will prepare the hook files (one for each repository) and send them to
you.

Armin
a***@hasitzka.com
2018-05-01 20:56:49 UTC
Permalink
Hi Bob,

a couple of short follow-up questions on this matter:


(1) Do you (Savannah Hacker team) happen to have a GitHub account that you
would
like to use for pushing to the GitHub mirrors?

- Yes: can you please tell me the user name, I will add appropriate rights
to the
repositories on GitHub.

- No: I would set up a new GitHub user for mirroring.


(2) Do you have a preference when it comes to pushing via SSH vs. HTTPS?

- SSH: If you have a GitHub account already, things should be set up and
ready
to go. Otherwise, if I create a new account for mirroring, I would kindly
ask
you to send me an SSH key of your liking and I will add it to the account.

- HTTPS: Again, if you have a GitHub account, no further actions are
required.
Otherwise, I would create an account and transfer the password to you.


(3) Are you able to save the password (of the SSH key or the user in case of
HTTPS) on the server? In that case, the post receive hooks really come down
to
executing

`git push --mirror github-mirror`

if the remotes `github-mirror` were added to the repositories on the server.

Please let me know what you think and what you prefer.

Thank you so much,
Armin
Post by a***@hasitzka.com
Post by Bob Proulx
Yes. Savannah's repositories allow hooks. There is no automated
mechanism for installing them however. Please simply ask the Savannah
Hacker team to install them. We are happy to do so.
These are amazing news :)
Post by Bob Proulx
I assume that question isn't about just doing it by cron though
because any party can mirror using cron. I am guessing the real
question is ...
Post by a***@hasitzka.com
Exactly, cron jobs would only be the backup option.
I will prepare the hook files (one for each repository) and send them to
you.
Bob Proulx
2018-05-01 22:37:32 UTC
Permalink
Hello Armin,
Post by a***@hasitzka.com
(1) Do you (Savannah Hacker team) happen to have a GitHub account
that you would like to use for pushing to the GitHub mirrors?
GitHub uses non-free software. Savannah can't officially sanction
using non-free by having an official account.

Mirroring can be done by anyone. And indeed many projects have source
code mirrored there. But Savannah processes itself cannot use any
non-free software nor endorse non-free software.

However I don't see a problem with triggering a mirroring push to one
of your accounts as long as only libre free software is involved on
the Savannah end.

Bob

Continue reading on narkive:
Loading...