-
Notifications
You must be signed in to change notification settings - Fork 2
Adding RTS scripts from svnScience to katsdpscripts in GitHub
Tom Mauch edited this page Apr 8, 2014
·
11 revisions
I followed the directions outlined in Ludwigs "Moving svnDS repositories to GitHub" email- with the command in step 6 modified as follows:
mkdir -p RTS2GIT && cd RTS2GIT
svn2git https://katfs.kat.ac.za/svnScience --nobranches --notags \
--no-minimize-url --authors ../svn-authors.txt --metadata --trunk RTS
This stops svn2git looking for a missing 'trunk'. (Note: --rootastrunk does not work in git version 1.8.3.2 due to a bug when parsing the URL of the svn repository)
This creates a github repository in the RTS2GIT directory containing the contents of https://katfs.kat.ac.za/svnScience/RTS/
For easier insertion into katsdpscripts we want to have the root of the repository as a single RTS directory containing the contents of the svn repository: https://katfs.kat.ac.za/svnScience/RTS/
We did this with:
git filter-branch --index-filter 'git ls-files -s | sed "s-\t\"*-&RTS/-" |
GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info &&
mv "$GIT_INDEX_FILE.new" "$GIT_INDEX_FILE"' HEAD