diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-22 18:49:43 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-22 18:49:43 -0700 |
commit | 3f571e0b3a7893ed068acd75f27e152d29945637 (patch) | |
tree | 4f8ec995afbd9e30705e148b4f0b33a2ace9fde6 /git-clone-script | |
parent | 60646e9a7170750093599fc52ad56453fc516185 (diff) | |
download | git-3f571e0b3a7893ed068acd75f27e152d29945637.tar.gz git-3f571e0b3a7893ed068acd75f27e152d29945637.tar.xz |
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.
Diffstat (limited to 'git-clone-script')
-rwxr-xr-x | git-clone-script | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/git-clone-script b/git-clone-script new file mode 100755 index 000000000..654f66dcc --- /dev/null +++ b/git-clone-script @@ -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 ) |