checkupdates: get default branch from git config

This commit is contained in:
Hans-Christoph Steiner 2024-11-18 12:38:42 +01:00
parent fbe9152ee5
commit c97503b5f3
2 changed files with 2 additions and 4 deletions

View file

@ -461,7 +461,6 @@ class CheckupdatesTest(unittest.TestCase):
git_repo.index.commit("all files")
repo, branch = fdroidserver.checkupdates.get_git_repo_and_main_branch()
self.assertTrue(branch in ('main', 'master'))
self.assertTrue(branch in repo.heads)
def test_checkout_appid_branch_does_not_exist(self):