Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/check-mirrors
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-09-17 22:48:31 +0200
committerErich Eckner <git@eckner.net>2018-09-17 22:48:31 +0200
commit6a3b49ae66eea02569e80c1c0fa2043c159038e4 (patch)
treeb417e6fbd349ade6bdf87feaab566938ded52106 /bin/check-mirrors
parent7ff13e834be11f675c5b62ae92ebd857a2c245d4 (diff)
bin/build-packages,bin/check-mirrors,bin/get-package-updates: "git fetch origin master:master" only works for bare repositories - use "git remote update" for non-bare ones
Diffstat (limited to 'bin/check-mirrors')
-rwxr-xr-xbin/check-mirrors6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/check-mirrors b/bin/check-mirrors
index b629880..696ded6 100755
--- a/bin/check-mirrors
+++ b/bin/check-mirrors
@@ -5,7 +5,11 @@
if [ $# -eq 0 ]; then
- git -C "${releng_directory}" fetch origin master:master || \
+ if [ -d "${releng_directory}/.git" ]; then
+ git -C "${releng_directory}" remote update
+ else
+ git -C "${releng_directory}" fetch origin master:master
+ fi || \
true
country_codes=$(