[gnome-builder/wip/gtk4-port] plugins/git: ignore things with refs/tags/ prefix
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/git: ignore things with refs/tags/ prefix
- Date: Tue, 31 May 2022 23:24:48 +0000 (UTC)
commit bd3394bc4e6280aa3bf4ebd85f81915643c51a53
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]