summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-12 11:02:35 +0200
committerErich Eckner <git@eckner.net>2019-07-12 11:02:35 +0200
commit1c7a63ff2b8d7d7dfe51d26b97cf16d06c93a08e (patch)
tree29a537348d0d3f71bc7d69101bbc90511cb2518a
parentc6214285b150470c6b497ddfee0701b6b06ff589 (diff)
downloadbuilder-1c7a63ff2b8d7d7dfe51d26b97cf16d06c93a08e.tar.xz
bin/get-package-updates: use `git pull --ff-only` instead of `git update remotes` on non-bare source repo
-rwxr-xr-xbin/get-package-updates2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 8763629..d159ace 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -217,7 +217,7 @@ 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).
if [ -d "${repo_path}/.git" ]; then
- git -C "${repo_path}" remote update
+ git -C "${repo_path}" pull --ff-only
else
git -C "${repo_path}" fetch origin master:master
fi || \