diff --git a/klaus/repo.py b/klaus/repo.py index 187920714d2123cd4abbd831688e807866cd6a87..094fd2733662a4d9ae3c72b1b0afa08b827c5dd0 100644 --- a/klaus/repo.py +++ b/klaus/repo.py @@ -130,7 +130,7 @@ class FancyRepo(dulwich.repo.Repo): def get_default_branch(self): """Tries to guess the default repo branch name.""" - for candidate in ["master", "trunk", "default", "gh-pages"]: + for candidate in ["master", "main", "trunk", "default", "gh-pages"]: try: self.get_commit(candidate) return candidate