and also add git init, as described in last commit

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-04-17 20:29:14 +02:00
parent 316d20d68a
commit ec46c1d584
1 changed files with 4 additions and 2 deletions

View File

@ -25,13 +25,15 @@
#
# % git clone git://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux-next.git
# % mkdir mynext && cd mynext
# % git init
# % next-init-branches.sh ../linux-next/Next/Trees
# % likenext-init.sh ../linux-next/Next/Trees
#
#
file="$1"; shift
# init current dir, don't care whether it is already, git init works well ;-)
git init
for remote in $(awk '$2 ~ /git/ { print $1 }' "$file"); do
url=$(awk "\$1 ~ /$remote/ { print \$3 }" "$file")
rurl=$(echo $url | awk -F'#' '{ print $1 }')