Re: Linux 2.6.22.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, 13 Jul 2007, Bryan Wu wrote:
> 
> I can git-pull from Linus tree through http in my company, this one
> can't. If it is not easy to open it by you guys, I have to git-pull at
> home, -:))

In that case, it's almost certainly that that tree isn't doing the proper 
"git update-server-info" when people push to it.

Chris/Greg: just add a

	hooks/post-update

file to your git repo that is executable, and just contains

	#!/bin/sh
	exec git-update-server-info

in it, and you'll be golden. It will mean that every time you push to the 
repo, it will run the "git update-server-info" thing after the push. And 
that will update all the necessary files for the stupid protocols (ie 
http) that don't know about git natively.

Oh, and run the "git-update-server-info" once by hand, just so that you 
don't then have to wait until after the next push for the git repo to be 
accessible by http://

www.kernel.org serves git repos fine, but the git repos have to help a bit 
at doing so.

What git update-server-info does is to create "info/refs" and 
"objects/info/packs" files that contain enough information for a client to 
figure out what refs and pack objects exist, so that they can try to fetch 
the necessary data on their own.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux