3f571e0b3a
It's just a trivial wrapper, but it should make Jeff's kernel developer guide to git look a bit less intimidating.
8 lines
132 B
Bash
Executable File
8 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 )
|