From: Jonas Fonseca Date: Mon, 4 Dec 2006 23:30:55 +0000 (+0100) Subject: Discard error messages from git-describe X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d3c345f7d3cb40c2e59137766c48ae8b91e024f4;p=tig.git Discard error messages from git-describe --- diff --git a/tig.c b/tig.c index 8d5f656..7172449 100644 --- a/tig.c +++ b/tig.c @@ -2311,7 +2311,7 @@ add_describe_ref(char *buf, size_t *bufpos, char *commit_id, const char *sep) char *ref = NULL; FILE *pipe; - if (!string_format(refbuf, "git describe %s", commit_id)) + if (!string_format(refbuf, "git describe %s 2>/dev/null", commit_id)) return TRUE; pipe = popen(refbuf, "r");