From: Stephen Rothwell Date: Wed, 17 Sep 2014 04:27:46 +0000 (+1000) Subject: fetch_trees: use git tricks to only store the first lines of some akpm patches X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=8afaeb32126e6ddaf19f3a8a0d8a87bfcae5e84b;p=next-scripts fetch_trees: use git tricks to only store the first lines of some akpm patches --- diff --git a/fetch_trees b/fetch_trees index 3396ced..08cb1be 100755 --- a/fetch_trees +++ b/fetch_trees @@ -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