Opened 4 years ago

Last modified 8 months ago

#21227 new enhancement

Ship a git-remote-tor helper

Reported by: nicoo Owned by:
Priority: Medium Milestone:
Component: Core Tor/Torsocks Version:
Severity: Minor Keywords:
Cc: nicoo Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Interacting with git remotes over Tor is harder than it needs to be.

The 2 current options I'm aware of are:

  • running torsocks git everytime, which is not great;
  • setting the http.proxy config option, but
    • this only works for HTTP remotes (not SSH ones, for instance)
    • this works on a per-repository basis
    • it's impossible to cone a repository (or add a remote, or...) and set this configuration item in one step

Given that, I quickly whipped up a git-remote-tor helper (in POSIX SH), which simply runs another git-remote-* helper under torsocks.
Using it, it is possible to do things such as git clone tor:http://dccbbv6cooddgcrq.onion/torspec.git.

It currently lacks documentation and doesn't work (yet) with SSH remotes, though.

Child Tickets

Attachments (1)

git-remote-tor (197 bytes) - added by nicoo 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by nicoo

Attachment: git-remote-tor added

comment:1 Changed 4 years ago by nicoo

Cc: nicoo added

comment:2 Changed 17 months ago by gaba

Owner: dgoulet deleted
Status: newassigned

Releasing some old tickets.

comment:3 Changed 8 months ago by teor

Status: assignednew

Change tickets that are assigned to nobody to "new".

Note: See TracTickets for help on using tickets.