Ticket #21227: git-remote-tor

File git-remote-tor, 197 bytes (added by nicoo, 3 years ago)
Line 
1#!/bin/sh -e
2
3die() {
4    echo "$0: fatal: " "$@" >&2
5    exit 1
6}
7
8[ -n "$GIT_DIR" ] || die 'GIT_DIR not set'
9
10TRANSPORT="$(echo "$2" | cut -d: -f1)"
11
12exec torsocks git-remote-"${TRANSPORT}" "$@"