1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Ticket #19065 (closed: self-service)

Opened 2 years ago

Last modified 2 years ago

Mirror SF.net git repository to github

Reported by: rombert Owned by:
Keywords: SOG Cc:
Private: no

Description

I would like to set up a post-commit hook for the mylyn-mantis project to mirror the repository on github.

I've added /home/scm_git/m/my/mylyn-mantis/mylyn-mantis/hooks/post-commit and configured github as a mirror remote, but I have hit two problems:

* there seems to be no network access to github.com
* I have no idea where to specify the ssh private key

Please advise,

Thanks,

Robert

Change History

Changed 2 years ago by ctsai

  • keywords SOG added
  • status changed from new to closed
  • resolution set to self-service

Hello,

We currently do not allow external access from our Git repositories, so you wouldn't be able to push to github via a post-commit hook here.

A local setting or hook to push to both repositories might work for you, though that would require that you make sure that all the developers have the same set of settings/hooks as well.

If you have any further questions, please don't hesitate to ask.

Regards,
Chris Tsai, SourceForge.net Support

Changed 2 years ago by cweiske

I wanted to do the same, but am using a third server now to do the mirroring every 30 minutes:
http://cweiske.de/tagebuch/mirror-sourceforge-git-github.htm

Note: See TracTickets for help on using tickets.