migrate_to_primtux4.sh 338 Bytes
Newer Older
David Beniamine's avatar
David Beniamine committed
1 2 3
#!/bin/bash

DIR=$(dirname $0)
4 5
PROXY_URL="http://dnsproxy:3128"
export HTTPS_PROXY="$PROXY_URL"
David Beniamine's avatar
David Beniamine committed
6
git fetch --all
7 8 9 10 11 12 13 14 15 16
git reset --hard HEAD
git branch -D Primtux3-migration
git checkout -b Primtux3-migration origin/Primtux3-migration
if [ $? -eq 0 ]
then
    git pull
    $DIR/migrate_to_primtux4.sh
else
    echo "Fail to switch branches"
fi
David Beniamine's avatar
David Beniamine committed
17