projects
/
sockgit.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
Reduce error handling boilerplate
[sockgit.git]
/
sockgit.sh
Commit
Line
Data
3bd921b8
JC
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