Code

Discard error messages from git-describe
authorJonas Fonseca <fonseca@diku.dk>
Mon, 4 Dec 2006 23:30:55 +0000 (00:30 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Mon, 4 Dec 2006 23:30:55 +0000 (00:30 +0100)
tig.c

diff --git a/tig.c b/tig.c
index 8d5f6563d85809a1f2fc80a2e03b7cd47304550e..71724493808f1e37e9a276c352872676889e0a26 100644 (file)
--- 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");