Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ fn main() {
let protocol = url.splitn(2, ':').collect::<Vec<&str>>()[0];
let remote_helper = "remote-".to_owned() + protocol;

Command::new("torsocks")
.arg("git")
Command::new("git")
.arg("-c")
.arg("remote.origin.proxy=socks5h://127.0.0.1:9050")
.arg(&remote_helper)
.args(args.iter().skip(1))
.spawn()
Expand Down Expand Up @@ -46,7 +47,7 @@ fn main() {
so you don't need to think about it again. You can use `git pull`,
`git fetch`, etc. as you normally would.

Don't forget to have a tor daemon running and torsocks installed!
Don't forget to have a tor daemon running !

If you find a bug or need help please let me know. More docs
and contact info are at https://agentofuser.com/git-remote-tor/.
Expand Down