projects
/
sockgit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Fix repos being created with target machine as remote name
[sockgit.git]
/
sockgit.sh
1
#!/bin/bash
2
if
[
$#
-lt
2
]
3
then
4
echo
$#
5
echo
"Usage: sockgit <host> <repo-name>"
6
exit
1
7
fi
8
if
[
-z
$PORT
]
9
then
10
PORT
=
9119
11
fi
12
echo
$2
| timeout
1
netcat
$1 $PORT