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

$20: Migrate PasteBox (SVN @ SourceForge) to a Git repo #60

Closed
ScalaWilliam opened this Issue Jul 22, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@ScalaWilliam
Owner

ScalaWilliam commented Jul 22, 2017

I tried to do this myself using a standard set of instructions but didn't have any luck. It might not be straightforward but perhaps someone already has done this from SourceForge.

Here's the website for PasteBox: http://pastebox.sourceforge.net/

I want to extract a Git repo to back it up easily & put up on GitHub, for historical and nostalgic reasons.

As Git requires an e-mail address for each committer, set it to 'hello@scalawilliam.com', name 'William Narmontas'. Each commit must have a timestamp and the right set of changes associated with it.

Host it on GitHub, put finished URL here.

I'll pay $20 for this. Rules @ http://work.scalawilliam.com/rules/

ScalaWilliam Work item: http://work.scalawilliam.com/migrate-pastebox-svn-git/

@ScalaWilliam

This comment has been minimized.

Show comment
Hide comment
@ScalaWilliam

ScalaWilliam Jul 22, 2017

Owner

Would be great to know all the steps involved

Owner

ScalaWilliam commented Jul 22, 2017

Would be great to know all the steps involved

@ThiefMaster

This comment has been minimized.

Show comment
Hide comment
@ThiefMaster

ThiefMaster Jul 22, 2017

Done. I requested to transfer that repo to you. Most likely GitHub sent you an email with a link to accept the repo transfer.

FYI, This was literally done by pasting your SVN url https://svn.code.sf.net/p/pastebox/code/ into https://github.com/new/import. Since GitHub only allows to set an email for svn committers but no name, I used this command to rewrite the commits afterwards on a clone, which I then force-pushed:

git filter-branch --env-filter '
NEW_NAME="William Narmontas"
NEW_EMAIL="hello@scalawilliam.com"

export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
export GIT_AUTHOR_NAME="$NEW_NAME"
export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
' --tag-name-filter cat -- --branches --tags

ThiefMaster commented Jul 22, 2017

Done. I requested to transfer that repo to you. Most likely GitHub sent you an email with a link to accept the repo transfer.

FYI, This was literally done by pasting your SVN url https://svn.code.sf.net/p/pastebox/code/ into https://github.com/new/import. Since GitHub only allows to set an email for svn committers but no name, I used this command to rewrite the commits afterwards on a clone, which I then force-pushed:

git filter-branch --env-filter '
NEW_NAME="William Narmontas"
NEW_EMAIL="hello@scalawilliam.com"

export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
export GIT_AUTHOR_NAME="$NEW_NAME"
export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
' --tag-name-filter cat -- --branches --tags
@ScalaWilliam

This comment has been minimized.

Show comment
Hide comment
@ScalaWilliam

ScalaWilliam Jul 22, 2017

Owner

@ThiefMaster Thanks, it satisfies my requirement.
Please check your GitHub account e-mail for payment.

Owner

ScalaWilliam commented Jul 22, 2017

@ThiefMaster Thanks, it satisfies my requirement.
Please check your GitHub account e-mail for payment.

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