]> git.ozlabs.org Git - next-scripts/commitdiff
fetch_trees: make fetching Andrew's tree quieter
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 11 Jun 2015 06:20:17 +0000 (16:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 11 Jun 2015 06:21:13 +0000 (16:21 +1000)
fetch_trees

index 08cb1be98f64e461d2e185b32232ac81f72a6657..af060cd0bfad3c75c098835e15c762f6a7da9f7a 100755 (executable)
@@ -28,7 +28,12 @@ for name in $trees; do
                        echo "Cannot chdir to ../mmotm" 1>&2
                        continue
                }
-               rsync -avHPz --exclude .git\* --exclude broken-out.tar.gz --delete ozlabs.org::akpm/mmotm/. .
+               rsync -az --partial --exclude .git\* --exclude broken-out.tar.gz --delete ozlabs.org::akpm/mmotm/. . || {
+                       git reset --hard
+                       echo "Fetcing Andrew's tree failed" 1>&2
+                       cd "$origwd"
+                       continue
+               }
                git add -A .
                [ "$(git status --porcelain)" ] &&
                        git commit -m "$(head -n 1 .DATE)"