mirror of
https://github.com/git/git
synced 2024-08-28 12:09:19 +00:00
8 lines
132 B
Plaintext
8 lines
132 B
Plaintext
![]() |
#!/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 )
|