From e8e8f8b9f01076682aa72ca9f44e88d02ab99b7e Mon Sep 17 00:00:00 2001 From: proletarius101 Date: Sun, 2 Jun 2024 21:13:37 +0800 Subject: [PATCH] fix(deploy): remove unnecessary additional initial commit and fix the test error: https://gitlab.com/proletarius101/fdroidserver/-/jobs/6997355250#L6978 --- fdroidserver/deploy.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fdroidserver/deploy.py b/fdroidserver/deploy.py index 9f827c3d..848a2dc1 100644 --- a/fdroidserver/deploy.py +++ b/fdroidserver/deploy.py @@ -690,11 +690,6 @@ def update_servergitmirrors(servergitmirrors, repo_section): repo = git.Repo.init(git_mirror_path, initial_branch=GIT_BRANCH) initial_ref = repo.head.ref - # An initial commit of the git tree is required be for other operations - print("repo.index.entries:", len(repo.index.entries)) - if len(repo.index.entries) == 0: - repo.index.commit('Initial commit') - enabled_remotes = [] for d in servergitmirrors: upload_to_servergitmirror(mirror_config=d,