@ -6,7 +6,7 @@ BASE_PATH="/home/user/nwellpott/svnMigration"
function migrate( ) {
function migrate( ) {
# change dir
# change dir
/usr/bin/printf "changing directory to %s\n" " $REPO "
/usr/bin/printf "changing directory to %s\n" " $REPO "
cd " $BASE_PATH / $REPO " || exit 1
cd " $BASE_PATH / $REPO " || return 1
# rebase
# rebase
/usr/bin/printf "attempt to fetch %s commits\n" " $REPO "
/usr/bin/printf "attempt to fetch %s commits\n" " $REPO "
@ -20,7 +20,7 @@ function clean() {
function push( ) {
function push( ) {
# push changes
# push changes
/usr/bin/git push --all
/usr/bin/git push --all || return 1
# push tags
# push tags
/usr/bin/git push --tags
/usr/bin/git push --tags
@ -28,9 +28,9 @@ function push() {
# main
# main
for REPO in " ${ REPOS [@] } " ; do
for REPO in " ${ REPOS [@] } " ; do
migrate
migrate || continue
clean
clean
push
push || continue
done
done