2014-04-27 19:19:17 -04:00
|
|
|
#!/bin/bash
|
|
|
|
green='\e[0;32m'
|
|
|
|
close='\e[0m'
|
|
|
|
mkdir -p /tmp/tests
|
|
|
|
echo -e "${green}Making test directories${close}"
|
|
|
|
cd /tmp/tests
|
|
|
|
mkdir a
|
|
|
|
mkdir b
|
|
|
|
cd /tmp/tests/a
|
|
|
|
git init
|
2014-06-01 12:33:00 -04:00
|
|
|
git remote add origin git@98.26.78.121:hitchhikers/Zaphod.git
|
2014-04-27 19:19:17 -04:00
|
|
|
echo -e "${green}SSH cloning${close}"
|
|
|
|
git pull origin master
|
|
|
|
echo -e "${green}"
|
|
|
|
ls
|
|
|
|
echo -e "${close}"
|
|
|
|
cd /tmp/tests/b
|
|
|
|
git init
|
2014-06-01 12:33:00 -04:00
|
|
|
git remote add origin https://98.26.78.121/gitlab/hitchhikers/Zaphod.git
|
2014-04-27 19:19:17 -04:00
|
|
|
git config http.sslVerify false
|
|
|
|
echo -e "${green}HTTPS cloning${close}"
|
|
|
|
git pull origin master
|
|
|
|
echo -e "${green}"
|
|
|
|
ls
|
|
|
|
echo -e "${close}"
|
|
|
|
echo -e "${green}Removing test directories${close}"
|
2014-04-27 19:20:35 -04:00
|
|
|
rm -rf /tmp/tests
|
2014-04-27 19:19:17 -04:00
|
|
|
echo -e "${green}Done testing!${close}"
|