git/list[1] front-page[2] threads[3] people[4] search[5] about
 

pre-receive - 1st push

From
MVMahesh Vaidya <forvaidya@gmail.com>
Date
Jul 25, 2010, 15:13 UTC
Message-ID
<AANLkTi=atkT2n0-+3pXevp-mBahtf1sXmNa+DEVbt=E_@mail.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
Message 1 of 1 in “pre-receive - 1st push”
  1. Mahesh VaidyaJul 25, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.