]> git.ozlabs.org Git - next-scripts/blob - to_ozlabs
add get_commit
[next-scripts] / to_ozlabs
1 #!/bin/bash
2
3 GIT_REPOS="next next-history.git quilt next-fixes tools etc mmotm"
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 --prune 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 - /akpm-import.log
23 - /summ
24 - /patch-*-next-2*
25 - /next-2*/
26 + .git/
27 + .git/config
28 + .git/hooks
29 + .git/hooks/**
30 + /next/.git/rr-cache/
31 + /next/.git/rr-cache/**
32 EOF
33         for i in $GIT_REPOS; do
34                 echo "- $i/**"
35         done
36 } | rsync -avHP --open-noatime --include-from - --delete . ozlabs.org:kernels/next/.
37
38 ssh ozlabs.org "touch kernels/NEXT-DONE"
39
40 # Fix up the git configs so that the next pushes will work
41 ssh ozlabs.org 'cd kernels/next; for i in '"$GIT_REPOS"'; do ( cd $i; git config receive.denyCurrentBranch ignore; ); done'
42
43 exit 0