aboutsummaryrefslogtreecommitdiff
blob: 0d0a2d9f1f2f1acf2c4dcc747d1c47cd992fbd64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
# (c) 2015 Michał Górny
# 2-clause BSD licensed

set -e -x

outputdir=${1}

[[ ${outputdir} ]]
cd "${outputdir}"

for repo in gentoo-ci gpyutils repos; do
	[[ -d ${repo} ]] || git clone --depth=1 "git://anongit.gentoo.org/report/${repo}.git"

	cd "${repo}"
	git reset --hard
	git clean -df
	git fetch origin '+refs/heads/*:refs/remotes/origin/*'
	git pull
	cd - >/dev/null
done