From 9af9dee7005d509c835876e75c711455cce23d8d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 20 Oct 2007 13:25:22 -0400 Subject: [PATCH] add an example of how to run git w/o getting random crap on stderr git is a real mess when it comes to a) parsing command line options consistently, b) outputting non-errors to stderr :-( --- debian/changelog | 2 +- mrconfig | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0828531..acdb9ee 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,7 +13,7 @@ mr (0.5) UNRELEASED; urgency=low [ Alexander Wirt ] * Add support for mercurial. - -- Alexander Wirt Sat, 20 Oct 2007 11:03:27 +0200 + -- Joey Hess Sat, 20 Oct 2007 13:24:15 -0400 mr (0.4) unstable; urgency=low diff --git a/mrconfig b/mrconfig index 8e18756..a2fcc24 100644 --- a/mrconfig +++ b/mrconfig @@ -1,6 +1,9 @@ # An example config file for the mr(1) command. [DEFAULT] +# This hack is here because git-pull stupidly outputs tag info to stderr. +# Shut it up but let real errors through, for use in cron. +quietupdate = mr -n update 3>&1 1>/dev/null 2>&3 | egrep -v '(storing tag|tag: )' # Teach mr how to run svn cleanup. cleanup = if [ -d "$MR_REPO"/.svn ]; then svn cleanup ; fi # And how to run git gc and push. -- 2.39.2