add git-serve
This commit is contained in:
parent
325b692e49
commit
928737d6b9
1 changed files with 10 additions and 0 deletions
10
git-serve
Executable file
10
git-serve
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Share a read-only git repo real quick
|
||||
# https://twitter.com/tenderlove/status/579425350590935040
|
||||
|
||||
PORT=$1
|
||||
GIT_DIR=$(git rev-parse --show-toplevel)
|
||||
|
||||
git update-server-info
|
||||
ruby -run -e httpd -- -p "$PORT" "$GIT_DIR"
|
||||
Loading…
Reference in a new issue