mirror of
https://github.com/git/git
synced 2024-10-30 13:20:15 +00:00
3f571e0b3a
It's just a trivial wrapper, but it should make Jeff's kernel developer guide to git look a bit less intimidating.
7 lines
132 B
Bash
Executable file
7 lines
132 B
Bash
Executable file
#!/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 )
|