summaryrefslogtreecommitdiff
path: root/bin/build-packages
diff options
context:
space:
mode:
Diffstat (limited to 'bin/build-packages')
-rwxr-xr-xbin/build-packages6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 62cfae7..a3f253d 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -283,7 +283,11 @@ while [ "${count}" -ne 0 ] && \
for repo_name in ${repo_names}; do
eval repo_path='"${repo_paths__'"${repo_name}"'}"'
- 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
done