Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index d9c71ab..5a7af82 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -200,7 +200,11 @@ something_new=false
for repo in ${repo_names}; do
eval repo_path='"${repo_paths__'"${repo}"'}"'
# Update git repositories (official packages, community packages and the repository of package customizations).
- git -C "${repo_path}" fetch origin master:master || \
+ if [ -d "${repo_path}/.git" ]; then
+ git -C "${repo_path}" remote update
+ else
+ git -C "${repo_path}" fetch origin master:master
+ fi || \
true
# read previous git revision numbers from database.
# shellcheck disable=SC2016