From d3c345f7d3cb40c2e59137766c48ae8b91e024f4 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 5 Dec 2006 00:30:55 +0100 Subject: [PATCH] Discard error messages from git-describe --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.11.0