Skip to content

Commit

Permalink
Add "git-clone-script" thingy
Browse files Browse the repository at this point in the history
It's just a trivial wrapper, but it should make Jeff's kernel developer
guide to git look a bit less intimidating.
  • Loading branch information
Linus Torvalds committed Jun 23, 2005
1 parent 60646e9 commit 3f571e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ SCRIPTS=git git-apply-patch-script git-merge-one-file-script git-prune-script \
git-pull-script git-tag-script git-resolve-script git-whatchanged \
git-deltafy-script git-fetch-script git-status-script git-commit-script \
git-log-script git-shortlog git-cvsimport-script git-diff-script \
git-reset-script git-add-script git-checkout-script gitk
git-reset-script git-add-script git-checkout-script git-clone-script \
gitk

PROG= git-update-cache git-diff-files git-init-db git-write-tree \
git-read-tree git-commit-tree git-cat-file git-fsck-cache \
Expand Down
7 changes: 7 additions & 0 deletions git-clone-script
Original file line number Diff line number Diff line change
@@ -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 )

0 comments on commit 3f571e0

Please sign in to comment.