You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2022/03/20 19:14:12 UTC

[kibble-scanners] branch master updated: main has recently become the default branch for git, so add that into the mix

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d581b1  main has recently become the default branch for git, so add that into the mix
4d581b1 is described below

commit 4d581b106180664ce895108e2865cc37ada5fef8
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sun Mar 20 20:14:09 2022 +0100

    main has recently become the default branch for git, so add that into the mix
---
 src/plugins/utils/git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/utils/git.py b/src/plugins/utils/git.py
index 29fa8a8..8576ce5 100644
--- a/src/plugins/utils/git.py
+++ b/src/plugins/utils/git.py
@@ -24,7 +24,7 @@ import re
 
 def defaultBranch(source, datapath, KibbleBit = None):
     """ Tries to figure out what the main branch of a repo is """
-    wanted_branches = ['master', 'trunk']
+    wanted_branches = ['main', 'master', 'trunk']
     branch = ""
     # If we have an override of branches we like, use 'em
     if KibbleBit and KibbleBit.config.get('git'):