Merge branch 'maint-1.5.4' into maint-1.5.5
[gitweb.git] / builtin-describe.c
index df554b30af3ddcb4d0141838c06f82d433cbf3a4..3da99c1d06f1eeb85e760036dc881282558603d6 100644 (file)
@@ -80,12 +80,13 @@ static int get_name(const char *path, const unsigned char *sha1, int flag, void
         * Otherwise only annotated tags are used.
         */
        if (might_be_tag) {
-               if (is_tag) {
+               if (is_tag)
                        prio = 2;
-                       if (pattern && fnmatch(pattern, path + 10, 0))
-                               prio = 0;
-               } else
+               else
                        prio = 1;
+
+               if (pattern && fnmatch(pattern, path + 10, 0))
+                       prio = 0;
        }
        else
                prio = 0;