3 GIT_REPOS='next next-history.git quilt next-fixes tools etc mmotm'
5 NEXT_DIR="$HOME/kernels/next"
7 if ! cd "$NEXT_DIR"; then
8 printf '%s: cannot cd to %s\n' "$0" "$NEXT_DIR" 1>&2
12 printf 'Updating Linus'\'' tree\n'
13 ssh ozlabs.org 'cd kernels/linus.git; git remote update'
15 for i in $GIT_REPOS; do
16 printf 'Pushing %s\n' "$i"
17 ( cd "$i" && git push --prune bilbo )
18 if [ "${i%.git}" = "$i" ]; then
19 ssh ozlabs.org 'cd kernels/next/'"$i"'; git reset --hard'
36 + /next/.git/rr-cache/
37 + /next/.git/rr-cache/**
39 for i in $GIT_REPOS; do
42 } | rsync -avHP --open-noatime --include-from - --delete . ozlabs.org:kernels/next/.
44 ssh ozlabs.org 'touch kernels/NEXT-DONE'
46 # Fix up the git configs so that the next pushes will work
49 for i in '"$GIT_REPOS"'; do
52 git config receive.denyCurrentBranch ignore