diff --git a/create.sh b/create.sh index b480f01..a4c9cfd 100644 --- a/create.sh +++ b/create.sh @@ -5,13 +5,13 @@ sshURL="$2" nodePort=`./random_port.py` -eval "$(ssh-agent -s)" -ssh-add /root/.ssh/id_github_rsa mkdir /var/www/gitwrapper/$name chmod 777 /var/www/gitwrapper/$name cd /var/www/gitwrapper/$name +eval "$(ssh-agent -s)" +ssh-add /root/.ssh/id_github_rsa echo `pwd` echo '=============' @@ -26,7 +26,7 @@ echo "==================" # change https urls to ssh -perl -pi -e 's/https:\/\/github.com\//ssh:\/\/git\@github.com:/g' .gitmodules +perl -pi -e 's/https:\/\/github.com\//git\@github.com:/g' .gitmodules git submodule sync echo "==================" ./scripts/setup.sh @@ -43,7 +43,7 @@ echo "BRANCH = '$name'" >> project/settings/local_settings.py git checkout $name # change https urls to ssh -perl -pi -e 's/https:\/\/github.com\//ssh:\/\/git\@github.com:/g' .gitmodules +perl -pi -e 's/https:\/\/github.com\//git\@github.com:/g' .gitmodules git submodule sync ./scripts/setup.sh git stash