From: Shawn O. Pearce Date: Mon, 28 Jun 2010 18:03:24 GMT Subject: Re: pre-receive - 1st push / rev-list didn't work Message-ID: <20100628180324.GD2337@spearce.org> In-Reply-To: Mahesh Vaidya wrote: > I am writing pre-receive hooks for commit validation. I use command > "git rev-list " to determine what am I pushing. I can > possibly pust more than one commit at a time. > > If I am doing 1st ever push ; then becomes "0" (40 times). How > do I determine what all commits I am pushing i this situations ? Your hook has to detect the 0x40 case and just omit it from the command line when you run git rev-list. -- Shawn.