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

Re: post-receive email

From
Patrick Notz <patnotz@gmail.com>
Date
Feb 18, 2009, 13:36 UTC
Message-ID
<1cd1989b0902180536o48a216edu3b835f3ce9b704c4@mail.gmail.com>
In-Reply-To
<556409.61398.qm@web35708.mail.mud.yahoo.com>
On Wed, Feb 18, 2009 at 5:44 AM, Arya, Manish Kumar <m.arya@yahoo.com> wrote:
Show 6 quoted lines
>
> Hi,
>
>  I am using git 1.6.1
>
> I have configured post-receive hook for sending emails on remote push activity.
Are you using the example contrib/hooks/post-receive-email that comes with Git?
Show 21 quoted lines
>
> But I am getting this error while push. any one using this script for email. can you suggest some other working script for this ?
>
> ----------------------------------
> Counting objects: 5, done.
> Compressing objects: 100% (3/3)   Compressing objects: 100% (3/3), done.
> Writing objects: 100% (3/3)   Writing objects: 100% (3/3), 344 bytes, done.
> Total 3 (delta 1), reused 0 (delta 0)
> hooks/post-receive: syntax error at line 73: `oldrev=$' unexpected
> error: hooks/post-receive exited with error code 2
> Pushing to ssh://xxx.xxx.xxx.net/opt/repos/mka.git
> To ssh://xxx.xxx.xxx.net/opt/repos/mka.git
>   db4b382..186b0af  master -> master
> -----------------------------------
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Arya, Manish Kumar
Message 2 of 2 in “post-receive email”
  1. Arya, Manish KumarFeb 18, 2009
  2. Patrick NotzFeb 18, 2009

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.