Re: [RFC] teamGIT bonjour support

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

 



On Fri, Nov 20, 2009 at 10:05:30AM +0100, Petr Baudis wrote:
>   Hi!
> 
> On Fri, Aug 28, 2009 at 12:32:39PM +0530, Abhijit Bhopatkar wrote:
> > I plan to do this on LAN using bonjour service discovery
> 
> I wonder why so much emphasis for this? It seems like a nifty
> convenience bit, but I don't think making this idea too central is any
> good. What if you get a second office at the other end of the world?
> What if part of your team is working on a deployment at customer site?
> What if part of your team works from home over a VPN?  What if your
> team is collaborating over the internet on an open project?  What if...?
> 
> That said, it sounds like a great idea to have let's say a post-commit
> hook that will start an upload job:
> 
> 	extbranch="$(whoami)/$(git symbolic-ref HEAD | sed 's#refs/heads/##')"

Thanks to sitaram, now I know that probably the best way is:

  	extbranch="$(whoami)/$(git describe --contains --all HEAD)"
	
(But now you *really* need to check if HEAD is a heads ref first or you
will push out to something totally bogus.)

P.S.: Heh, I would never guess what that git describe command already
does, talk about intuitiveness. ;-) (Of course, when you know exactly
what the switches do, it totally makes sense.)

-- 
				Petr "Pasky" Baudis
A lot of people have my books on their bookshelves.
That's the problem, they need to read them. -- Don Knuth
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]