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 2020/11/12 08:15:40 UTC
[kibble] branch main updated: GitHub uses main as default branch,
so we should obviously look for that.
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kibble.git
The following commit(s) were added to refs/heads/main by this push:
new 4884cf5 GitHub uses main as default branch, so we should obviously look for that.
4884cf5 is described below
commit 4884cf5af74d99974e1c4df1de5eedffe14f7165
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Nov 12 09:15:35 2020 +0100
GitHub uses main as default branch, so we should obviously look for that.
---
kibble/scanners/utils/git.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kibble/scanners/utils/git.py b/kibble/scanners/utils/git.py
index c780919..bd71252 100644
--- a/kibble/scanners/utils/git.py
+++ b/kibble/scanners/utils/git.py
@@ -25,7 +25,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 = ["master", "main", "trunk"]
branch = ""
# If we have an override of branches we like, use 'em
if KibbleBit and KibbleBit.config.get("git"):