# pre-receive - 1st push

1 messages from 2010-07-25 to 2010-07-25. Participants: Mahesh Vaidya.
Thread: https://gitlist.dev/t/24512

## Mahesh Vaidya, 2010-07-25 15:13

Subject: pre-receive - 1st push
Message-ID: <AANLkTi=atkT2n0-+3pXevp-mBahtf1sXmNa+DEVbt=E_@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DatkT2n0-%2B3pXevp-mBahtf1sXmNa%2BDEVbt%3DE_%40mail.gmail.com

```
Hi I want ensure that commits are in particular format before doing
receive-pack. I use pre-receive hook

I use git-revlist command. This works fine when that branch exist in
destination origin.

When I am doing a push 1st ever time and sending clone is sending 3
commits; how do i determine which are those 3 commits on the specific
branch.

git rev-list <commit> gives just too many commits ; I have done only 3
commits on source repository. destination repo don't have that branch
yet so no use of git-show-branch)


Thx/ Mahesh

```
