2499f7e7 IB |
1 | #!/bin/bash |
2 | |
3 | cd /etc/puppetlabs/code |
4 | git fetch origin |
5 | |
6 | branch="master" |
7 | if [ -n "$1" ]; then |
8 | branch="$1" |
9 | fi |
10 | |
d765eedf |
11 | git reset --hard origin/$branch |
2499f7e7 IB |
12 | |
13 | git submodule update --init |
cfa8eb92 |
14 | puppet_apply --test manifests/site.pp |