Re: [PATCH] Added hook in git-receive-pack
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jul 31, 2005, 20:33 UTC
- Message-ID
- <7vr7ded8ax.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.58.0507311305170.29650@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> This looks sane. However, I also get the strong feeling that > git-update-server-info should be run as part of a hook and not be built > into receive-pack..
> Personally, I simply don't want to update any dumb server info stuff for > my own local repositories - it's not like I'm actually serving those out > anyway.
But you are. I can run this just fine:
$ git clone http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/git.git/ linus
I agree in principle that you should be able to disable the call to update_server_info() from there, but on the other hand once we start doing it, we need to explain people which repo is http capable and which repo is not and why.
I was actually thinking about a call to git-update-server-info at the end of git-repack-script. Again, great minds think the opposite way sometimes ;-).