Add "git-clone-script" thingy

It's just a trivial wrapper, but it should make Jeff's kernel developer
guide to git look a bit less intimidating.
This commit is contained in:
Linus Torvalds
2005-06-22 18:49:43 -07:00
parent 60646e9a71
commit 3f571e0b3a
2 changed files with 9 additions and 1 deletions

7
git-clone-script Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
repo="$1"
dir="$2"
mkdir $dir || exit 1
cd $dir
git-init-db
git fetch "$repo" && ( git-rev-parse FETCH_HEAD > .git/HEAD )