summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/mageia-reset-and-import.sh9
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