-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclone_git_repos.sh
More file actions
executable file
·31 lines (27 loc) · 931 Bytes
/
clone_git_repos.sh
File metadata and controls
executable file
·31 lines (27 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
#=======================================
# Install a bunch of git repositories
# Asume git and git review are installed
#=======================================
# Clone my common OpenStack projects
repo_list=(
'https://github.com/openstack/interop.git'
'https://github.com/openstack/refstack.git'
'https://github.com/openstack/refstack-client.git'
'https://github.com/openstack/tempest.git'
'https://github.com/openstack/openstack-ansible.git'
'https://github.com/openstack/openstack-ansible-os_tempest.git'
'https://github.com/openstack-infra/project-config.git'
'https://github.com/dlux/InstallScripts.git'
)
for i in "${repo_list[@]}"; do
name=$(echo "${i}" | sed 's/.*openstack\///g' | sed 's/.git//g')
if [[ -d ${name} ]]; then
_date=$(date +"%m-%d-%y%T")
mv "${name}" "${name}_old_${_date}"
fi
git clone "${i}"
pushd "${name}"
git review -s
popd
done