From 6a3b49ae66eea02569e80c1c0fa2043c159038e4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 17 Sep 2018 22:48:31 +0200 Subject: 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 --- bin/check-mirrors | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/check-mirrors') 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=$( -- cgit v1.2.3-70-g09d2