diff --git a/src/main.rs b/src/main.rs index f5fbf8c..2dcdabf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,8 +10,9 @@ fn main() { let protocol = url.splitn(2, ':').collect::>()[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() @@ -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/.