Re: Make git-push silent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]