Mahesh Vaidya <forvaidya@xxxxxxxxx> wrote: > I am writing pre-receive hooks for commit validation. I use command > "git rev-list <from> <to>" 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 <from> 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. -- 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