{"thread":{"id":"24512","subject":"pre-receive - 1st push","startedAt":"2010-07-25T15:13:43Z","lastAt":"2010-07-25T15:13:43Z","messageCount":1,"participants":["Mahesh Vaidya"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"146291","messageId":"AANLkTi=atkT2n0-+3pXevp-mBahtf1sXmNa+DEVbt=E_@mail.gmail.com","threadId":"24512","inReplyTo":null,"subject":"pre-receive - 1st push","fromName":"Mahesh Vaidya","fromEmail":"forvaidya@gmail.com","sentAt":"2010-07-25T15:13:43Z","receivedAt":"2010-07-25T15:13:43Z","isPatch":false,"sender":{"key":"forvaidya@gmail.com","avatar":null},"body":"Hi I want ensure that commits are in particular format before doing\nreceive-pack. I use pre-receive hook\n\nI use git-revlist command. This works fine when that branch exist in\ndestination origin.\n\nWhen I am doing a push 1st ever time and sending clone is sending 3\ncommits; how do i determine which are those 3 commits on the specific\nbranch.\n\ngit rev-list <commit> gives just too many commits ; I have done only 3\ncommits on source repository. destination repo don't have that branch\nyet so no use of git-show-branch)\n\n\nThx/ Mahesh\n"}]}