]> git.ozlabs.org Git - next-scripts/blobdiff - to_ozlabs
to_build_host: provide some protection against misrunning
[next-scripts] / to_ozlabs
index 77747345d21279dace35954e9fb33ed51717a914..268c09ed4ab7434891b4fcfaddebe12ded43dc55 100755 (executable)
--- a/to_ozlabs
+++ b/to_ozlabs
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-GIT_REPOS="next next-history.git quilt next-fixes tools etc mmotm init"
+GIT_REPOS="next next-history.git quilt next-fixes tools etc mmotm"
 
 cd ~/kernels/next
 
@@ -9,7 +9,7 @@ ssh ozlabs.org "cd kernels/linus.git; git remote update"
 
 for i in $GIT_REPOS; do
        echo "Pushing $i"
-       ( cd $i; git push bilbo )
+       ( cd $i; git push --prune bilbo )
        [ "${i%.git}" = "$i" ] &&
                ssh ozlabs.org "cd kernels/next/$i; git reset --hard"
 done
@@ -26,6 +26,8 @@ done
 - /next-2*/
 + .git/
 + .git/config
++ .git/hooks
++ .git/hooks/**
 + /next/.git/rr-cache/
 + /next/.git/rr-cache/**
 EOF