From 559b3dd718a4da351f8020f96646cedb153b10f6 Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Mon, 7 Jun 2021 17:12:01 +0200 Subject: [PATCH] initial commit + initial svn migration rebase script --- svnmigrate.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 svnmigrate.sh diff --git a/svnmigrate.sh b/svnmigrate.sh new file mode 100644 index 0000000..5535474 --- /dev/null +++ b/svnmigrate.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +REPOS=(skript scare scare2) +BASE_PATH="/home/user/nwellpott/svnMigration" + +for REPO in "${REPOS[@]}"; do + # change dir + /usr/bin/printf "changing directory to %s\n" "$REPO" + cd "$BASE_PATH/$REPO" || exit 1 + + # rebase + /usr/bin/printf "attempt to fetch %s commits\n" "$REPO" + /usr/bin/svn2git --rebase + + # push changes + # /usr/bin/git push --all +done