Re: undoing changes with git-checkout -f
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jan 10, 2006, 05:57 UTC
- Message-ID
- <7vk6d8aaln.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060110045533.GO18439@ca-server1.us.oracle.com>
Joel Becker <Joel.Becker@oracle.com> writes:
> Can we teach the git:// fetch program to use CONNECT over HTTP > proxies? rsync can do this, but git:// cannot, so firewalls that block > 9418 mean we use rsync:// > I'm mostly offline this week or I'd take a stab at it.
It's been there for quite some time, although I never liked the way it interfaces with the outside world.
$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
gitproxy = /usr/local/bin/tn-gw-nav-local
$ cat /usr/local/bin/tn-gw-nav-local
#!/bin/sh
# Use squid running at localhost
exec tn-gw-nav -H -h 127.0.0.1 -p 3128 "$1" "$2"
$ grep SSL /etc/squid/squid.conf
acl SSL_ports 443 563 9418 # https snntp git
http_access deny CONNECT !SSL_ports
$ git fetch --tags git://git.kernel.org/pub/scm/git/git.git/It is a bit inconvenient that "git clone" wrapper cannot be used on an existing repository, and without an existing repository you cannot have .git/config. You could have the config file in your site-wide template area, but admittably it is a bit awkward.