* Make git-push silent
@ 2010-10-21 18:19 Enrico Weigelt
2010-10-21 18:38 ` Jonathan Nieder
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Enrico Weigelt @ 2010-10-21 18:19 UTC (permalink / raw)
To: git
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.
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
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Make git-push silent
2010-10-21 18:19 Make git-push silent Enrico Weigelt
@ 2010-10-21 18:38 ` Jonathan Nieder
2010-10-21 18:45 ` Drew Northup
2010-10-21 18:49 ` David Borowitz
2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Nieder @ 2010-10-21 18:38 UTC (permalink / raw)
To: Enrico Weigelt; +Cc: git
Hi Enrico,
Enrico Weigelt wrote:
> is there a way to make git-push silent in a way that it only
> outputs something in case of error ?
http://thread.gmane.org/gmane.comp.version-control.git/153558
Cheers,
Jonathan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Make git-push silent
2010-10-21 18:19 Make git-push silent Enrico Weigelt
2010-10-21 18:38 ` Jonathan Nieder
@ 2010-10-21 18:45 ` Drew Northup
2010-10-21 18:49 ` David Borowitz
2 siblings, 0 replies; 4+ messages in thread
From: Drew Northup @ 2010-10-21 18:45 UTC (permalink / raw)
To: weigelt; +Cc: git
On Thu, 2010-10-21 at 20:19 +0200, Enrico Weigelt wrote:
> 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.
>
> If there's no such a feature/switch yet, could anyone give me
> a hint where/how to implement this ?
Have you tried wrapping it in a shell script? That's what I do when
virus-checking multiple webspaces and not wanting routine output unless
there's a problem. If the return value (to the shell) is something other
than zero then I return all of the output I captured to the user (and
therefore it gets mailed to me by cron).
--
-Drew Northup N1XIM
AKA RvnPhnx on OPN
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Make git-push silent
2010-10-21 18:19 Make git-push silent Enrico Weigelt
2010-10-21 18:38 ` Jonathan Nieder
2010-10-21 18:45 ` Drew Northup
@ 2010-10-21 18:49 ` David Borowitz
2 siblings, 0 replies; 4+ messages in thread
From: David Borowitz @ 2010-10-21 18:49 UTC (permalink / raw)
To: git
On Thu, Oct 21, 2010 at 11:19, Enrico Weigelt <weigelt@metux.de> wrote:
>
> 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/
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-21 18:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 18:19 Make git-push silent Enrico Weigelt
2010-10-21 18:38 ` Jonathan Nieder
2010-10-21 18:45 ` Drew Northup
2010-10-21 18:49 ` David Borowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).