aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-02-12 08:55:56 +0100
committerMichał Górny <mgorny@gentoo.org>2016-02-12 08:55:56 +0100
commitd3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a (patch)
tree78b72023d2923b15de9c6c9a631f80d61f905002 /fetch-git-reports.sh
parentpackages-inheriting-eclasses: update for pkgcore-0.9.2 API (diff)
downloadqa-scripts-d3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a.tar.gz
qa-scripts-d3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a.tar.bz2
qa-scripts-d3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a.zip
fetch-git-reports: Clean up repository before pulling
Diffstat (limited to 'fetch-git-reports.sh')
-rwxr-xr-xfetch-git-reports.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/fetch-git-reports.sh b/fetch-git-reports.sh
index ae1bc27..0d0a2d9 100755
--- a/fetch-git-reports.sh
+++ b/fetch-git-reports.sh
@@ -13,6 +13,8 @@ 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