diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-02-12 08:55:56 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-02-12 08:55:56 +0100 |
commit | d3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a (patch) | |
tree | 78b72023d2923b15de9c6c9a631f80d61f905002 | |
parent | packages-inheriting-eclasses: update for pkgcore-0.9.2 API (diff) | |
download | qa-scripts-d3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a.tar.gz qa-scripts-d3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a.tar.bz2 qa-scripts-d3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a.zip |
fetch-git-reports: Clean up repository before pulling
-rwxr-xr-x | fetch-git-reports.sh | 2 |
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 |