projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Make "git fetch" able to fetch a named tag
[git]
/
git-clone-script
1
#!/bin/sh
2
repo="$1"
3
dir="$2"
4
mkdir $dir || exit 1
5
cd $dir
6
git-init-db
7
git fetch "$repo" && ( git-rev-parse FETCH_HEAD > .git/HEAD )