Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-02 14:54:06 +0200
committerErich Eckner <git@eckner.net>2017-05-02 14:54:06 +0200
commitb25c07d3aa2e41c2248eac34893cf6e934961276 (patch)
treea92571612aa4d56bcc5a2cafd2a49716b1e81c94 /bin
parentd81f07112e538bb1b586140619eab02db3a5e62c (diff)
bin/get-package-updates: be more forceful with git repositories
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-package-updates2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 05bdcaa..de58eb2 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -17,6 +17,8 @@ flock -n 9 || exit
# Update git repositories (official packages, community packages and the repository of package customizations).
for repo in "${repo_paths[@]}"; do
+ git -C "${repo}" clean -df
+ git -C "${repo}" checkout master
git -C "${repo}" pull
done