[gnome-builder/wip/gtk4-port: 1244/1774] plugins/git: ignore things with refs/tags/ prefix




commit 4d101d707ba8c60f5da1ef68be54d5c44f778874
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 31 16:24:43 2022 -0700

    plugins/git: ignore things with refs/tags/ prefix

 src/plugins/git/gbp-git-vcs-cloner.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/git/gbp-git-vcs-cloner.c b/src/plugins/git/gbp-git-vcs-cloner.c
index b6dd3b62d..f4892e145 100644
--- a/src/plugins/git/gbp-git-vcs-cloner.c
+++ b/src/plugins/git/gbp-git-vcs-cloner.c
@@ -309,7 +309,8 @@ should_ignore (const char *name)
   if (name == NULL)
     return TRUE;
 
-  if (g_str_has_prefix (name, "refs/merge-requests/"))
+  if (g_str_has_prefix (name, "refs/merge-requests/") ||
+      g_str_has_prefix (name, "refs/tags/"))
     return TRUE;
 
   return FALSE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]