-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fbbdd20
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[core] | ||
gitproxy = none for intel.com | ||
gitproxy = git-proxy | ||
editor = vim | ||
|
||
[user] | ||
name = Lianhao Lu | ||
email = lianhao.lu@intel.com | ||
[color] | ||
ui = auto | ||
|
||
[gitreview] | ||
username = lianhao-lu | ||
[http] | ||
postBuffer = 52428800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
# git proxy wrapper | ||
# need to install nc first | ||
# put this file in directories in $PATH | ||
|
||
_proxy="<socks proxy>" | ||
_proxyport="1080" | ||
|
||
case $1 in | ||
# Direct connect without proxy | ||
*.intel.com|192.168.*|127.0.*|localhost|10.*) | ||
METHOD="-X connect" | ||
;; | ||
*) | ||
METHOD="-X 5 -x $_proxy:$_proxyport" | ||
;; | ||
esac | ||
|
||
/bin/nc.openbsd $METHOD $* |