]> git.ozlabs.org Git - next-scripts/commitdiff
to_ozlabs: just rsync the whole thing
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Jul 2023 02:20:06 +0000 (12:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Jul 2023 02:20:06 +0000 (12:20 +1000)
This actually reduces the data on ozlabs.org as we have
pruned the main repo before we run this

to_ozlabs

index 7822c6806b3d54140386ce2eb69c665cdd592fb4..5b0a440fc4cfea3fc7e95880cd456b61fa53bfaa 100755 (executable)
--- a/to_ozlabs
+++ b/to_ozlabs
@@ -12,44 +12,15 @@ fi
 printf 'Updating Linus'\'' tree\n'
 ssh ozlabs.org 'cd kernels/linus.git; git remote update'
 
-for i in $GIT_REPOS; do
-       printf 'Pushing %s\n' "$i"
-       ( cd "$i" && git push --prune bilbo )
-       if [ "${i%.git}" = "$i" ]; then
-               ssh ozlabs.org 'cd kernels/next/'"$i"'; git reset --hard'
-       fi
-done
-
-{
-       cat <<EOF
+cat <<EOF | rsync -avHP --open-noatime --include-from - --delete . ozlabs.org:kernels/next/.
 - gitk.cache
 - /merge.debug
 - /merge.log
 - /summ
 - /patch-*-next-2*
 - /next-2*/
-+ .git/
-+ .git/config
-+ .git/hooks
-+ .git/hooks/**
-+ /next/.git/rr-cache/
-+ /next/.git/rr-cache/**
 EOF
-       for i in $GIT_REPOS; do
-               echo "- $i/**"
-       done
-} | rsync -avHP --open-noatime --include-from - --delete . ozlabs.org:kernels/next/.
 
 ssh ozlabs.org 'touch kernels/NEXT-DONE'
 
-# Fix up the git configs so that the next pushes will work
-ssh ozlabs.org '
-cd kernels/next
-for i in '"$GIT_REPOS"'; do
-(
-       cd $i
-       git config receive.denyCurrentBranch ignore
-)
-done'
-
 exit 0