]> git.ozlabs.org Git - next-scripts/blob - to_ozlabs
to_ozlabs: don't checkout ourt remote trees
[next-scripts] / to_ozlabs
1 #!/bin/bash
2
3 GIT_REPOS="next next-history.git quilt next-fixes tools etc mmotm init"
4
5 cd ~/kernels/next
6
7 echo "Updating Linus' tree"
8 ssh ozlabs.org "cd kernels/linus.git; git remote update"
9
10 for i in $GIT_REPOS; do
11         echo "Pushing $i"
12         ( cd $i; git push bilbo )
13 #       [ "${i%.git}" = "$i" ] &&
14 #               ssh ozlabs.org "cd kernels/next/$i; git reset --hard"
15 done
16
17 {
18         cat <<EOF
19 - gitk.cache
20 - /merge.debug
21 - /merge.log
22 - /quilt-import.log
23 - /akpm-import.log
24 - /summ
25 - /patch-*-next-2*
26 - /next-2*/
27 + .git/
28 + .git/config
29 + /next/.git/rr-cache/
30 + /next/.git/rr-cache/**
31 EOF
32         for i in $GIT_REPOS; do
33                 echo "- $i/**"
34         done
35 } | rsync -avHP --include-from - --delete . ozlabs.org:kernels/next/.
36
37 ssh ozlabs.org "touch kernels/NEXT-DONE"
38
39 # Fix up the git configs so that the next pushes will work
40 ssh ozlabs.org 'cd kernels/next; for i in '"$GIT_REPOS"'; do ( cd $i; git config receive.denyCurrentBranch ignore; ); done'
41
42 exit 0