aboutsummaryrefslogtreecommitdiff
blob: 1520cece9ad8cc68121509c940c3d493c158914c (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 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