commit: d3dc416dd1c0faa1f9a72eabbd4d9b063d089d8a Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Feb 12 07:55:56 2016 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Feb 12 07:55:56 2016 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=d3dc416d
fetch-git-reports: Clean up repository before pulling fetch-git-reports.sh | 2 ++ 1 file changed, 2 insertions(+) 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