bb3db1795b
Switching branches and applying patches in the build repos will unnecessarily touch many files, causing rebuilds of packages that didn't really change; furthermore, it is filling the reflog with many entries. Don't ever switch to base branch in the build repos and apply patches in a temporary clone to avoid these issues. In addition, GPG signing is generally disabled in the build repos to override potential global configuration (as signing doesn't make sense and will slow down rebases).
21 lines
450 B
Bash
Executable File
21 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
. "$GLUONDIR"/scripts/modules.sh
|
|
|
|
for module in $GLUON_MODULES; do
|
|
echo "--- Updating module '$module' ---"
|
|
var=$(echo $module | tr '[:lower:]/' '[:upper:]_')
|
|
eval repo=\${${var}_REPO}
|
|
eval branch=\${${var}_BRANCH}
|
|
eval commit=\${${var}_COMMIT}
|
|
|
|
mkdir -p "$GLUONDIR"/$module
|
|
cd "$GLUONDIR"/$module
|
|
git init
|
|
git config commit.gpgsign false
|
|
|
|
git branch -f base $commit 2>/dev/null || git fetch -f $repo $branch:base
|
|
done
|