]> git.ozlabs.org Git - next-scripts/commitdiff
fetch_trees: use git tricks to only store the first lines of some akpm patches
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 17 Sep 2014 04:27:46 +0000 (14:27 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 17 Sep 2014 04:27:46 +0000 (14:27 +1000)
fetch_trees

index 3396cede86458468020684206cff7cd91c171a8c..08cb1be98f64e461d2e185b32232ac81f72a6657 100755 (executable)
@@ -28,15 +28,10 @@ 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/. .
-               # we only use the fist lines of {origin,linux-next}.patch
-               [ -f broken-out/origin.patch ] &&
-                       sed -i 1q broken-out/origin.patch
-               [ -f broken-out/linux-next.patch ] &&
-                       sed -i 1q broken-out/linux-next.patch
+               rsync -avHPz --exclude .git\* --exclude broken-out.tar.gz --delete ozlabs.org::akpm/mmotm/. .
                git add -A .
                [ "$(git status --porcelain)" ] &&
-                                git commit -m "$(head -n 1 .DATE)"
+                       git commit -m "$(head -n 1 .DATE)"
                cd "$origwd"
                continue
        fi