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

Re: Make git-push silent

From
David Borowitz <dborowitz@google.com>
Date
Oct 21, 2010, 18:49 UTC
Message-ID
<AANLkTik3GndR27OH-dtmQ7w4dbnACymxunvZ3=PNbQxT@mail.gmail.com>
In-Reply-To
<20101021181906.GA28700@nibiru.local>
On Thu, Oct 21, 2010 at 11:19, Enrico Weigelt <weigelt@metux.de> wrote:
Show 9 quoted lines
>
> Hi folks,
>
>
> is there a way to make git-push silent in a way that it only
> outputs something in case of error ?
>
> I'm using it as a backup tool via cron scripts, and therefore I
> dont want any output when everything went okay.

Not a solution on the git front, but I use cronic[1] to do this with arbitrary cron scripts (including some that do git pull/fetch). It traps all script output and is silent unless it encounters a nonzero return code. [1] http://habilis.net/cronic/

Show 19 quoted lines
>
> If there's no such a feature/switch yet, could anyone give me
> a hint where/how to implement this ?
>
>
> thx
> --
> ----------------------------------------------------------------------
>  Enrico Weigelt, metux IT service -- http://www.metux.de/
>
>  phone:  +49 36207 519931  email: weigelt@metux.de
>  mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
> ----------------------------------------------------------------------
>  Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
> ----------------------------------------------------------------------
> --
> 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: Drew Northup
Message 4 of 4 in “Make git-push silent”
  1. Enrico WeigeltOct 21, 2010
  2. Jonathan NiederOct 21, 2010
  3. Drew NorthupOct 21, 2010
  4. David BorowitzOct 21, 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.