Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This repo very out of date #6

Closed
mohawk2 opened this issue Aug 22, 2014 · 7 comments
Closed

This repo very out of date #6

mohawk2 opened this issue Aug 22, 2014 · 7 comments

Comments

@mohawk2
Copy link
Member

mohawk2 commented Aug 22, 2014

The actual core repo on http://sourceforge.net/p/pdl/code/ci/master/tree/ shows commits from Aug. This repo stops at Apr.

@wchristian
Copy link
Member

This is fixed for now, and i'm setting up an auto-synch cron script as i type.

@wchristian
Copy link
Member

Addendum: Using this method i set up a cron script on one of my machines, to run every xx:10 and xx:40 :

http://cweiske.de/tagebuch/mirror-sourceforge-git-github.htm

@wchristian
Copy link
Member

Just for matters of documentation, here is the .git/config file:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = true
[remote "origin"]
    fetch = +refs/*:refs/*
    mirror = true
    url = git://git.code.sf.net/p/pdl/code
[remote "github"]
    url = git@github.com:PDLPorters/pdl.git
    fetch = +refs/heads/*:refs/remotes/github/*
    mirror = true
[alias]
    update-mirror = !git fetch -q origin && git push -q github

And the crontab entry:

*/5 * * * * cd /root/pdl.git && git update-mirror

@mohawk2
Copy link
Member Author

mohawk2 commented Feb 28, 2015

Just read back and the error was mine. False alarm!

@mohawk2
Copy link
Member Author

mohawk2 commented Feb 28, 2015

The mirror script is now recreating branches that are deleted on sf.net. The problem is that it needs --prune on the fetch in the alias. @wchristian, could you update it?

@wchristian
Copy link
Member

Amended:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = true
[remote "origin"]
    fetch = +refs/*:refs/*
    mirror = true
    url = git://git.code.sf.net/p/pdl/code
[remote "github"]
    url = git@github.com:PDLPorters/pdl.git
    fetch = +refs/heads/*:refs/remotes/github/*
    mirror = true
[alias]
    update-mirror = !git fetch --prune -q origin && git push -q github

@wchristian wchristian reopened this Mar 1, 2015
@mohawk2
Copy link
Member Author

mohawk2 commented Mar 2, 2015

This is working superbly! Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants