diff options
author | Colin Guthrie <colin@mageia.org> | 2013-05-30 10:10:32 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-05-30 10:10:32 +0100 |
commit | ce30bb9324d70fed0f2bb44a0bca57737c1ae02d (patch) | |
tree | 45a21e5553b2012846451763f590c64935ce2e6f | |
parent | 6209cd52da24bf33650031e484d66b4bc2145db8 (diff) | |
download | svn-git-migration-ce30bb9324d70fed0f2bb44a0bca57737c1ae02d.tar svn-git-migration-ce30bb9324d70fed0f2bb44a0bca57737c1ae02d.tar.gz svn-git-migration-ce30bb9324d70fed0f2bb44a0bca57737c1ae02d.tar.bz2 svn-git-migration-ce30bb9324d70fed0f2bb44a0bca57737c1ae02d.tar.xz svn-git-migration-ce30bb9324d70fed0f2bb44a0bca57737c1ae02d.zip |
Clear out any old git remotes
This will confuse our final push at the end, so we want rid of these
-rwxr-xr-x | scripts/mageia-reset-and-import.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/mageia-reset-and-import.sh b/scripts/mageia-reset-and-import.sh index 45a405d..d9a866d 100755 --- a/scripts/mageia-reset-and-import.sh +++ b/scripts/mageia-reset-and-import.sh @@ -44,6 +44,15 @@ if [ -f ../svn-import.log ]; then fi fi +remotes=$(git remote -v | cut -f1 | sort -u | xargs) +if [ -n "$remotes" ]; then + echo -n "Removing old remotes '$remotes'..." + for remote in $remotes; do + git remote rm $remote + done + echo "done" +fi + echo -n "Finding UUID for SVN Repository $NEWSVNURL... " NEWSVNUUID=$(svn info $NEWSVNURL | grep "^Repository UUID:" | sed 's/Repository UUID: //') echo $NEWSVNUUID |