From ce30bb9324d70fed0f2bb44a0bca57737c1ae02d Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Thu, 30 May 2013 10:10:32 +0100 Subject: Clear out any old git remotes This will confuse our final push at the end, so we want rid of these --- scripts/mageia-reset-and-import.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.1