mirror of
https://github.com/git/git.git
synced 2024-11-06 01:03:02 +01: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 )
|