Copied from https://pagure.io/fedrepo_req/issue/140
When a new src.fp.o repo is created, there is always a first commit. It used to be Initial setup of the repo with empty .gitignore and sources, now it appears to be Added the README by @limb.
.gitignore
sources
Based on the official instructions, fedpkg import is used to get the spec + patches to git and sources to the lookaside cache. A call to fedpk import just removes such README. It have been there exactly one commit and it's gone.
fedpkg import
fedpk import
A packager with more complex workflow might prep the package in git (on pagure, or github or whatever). Once the package is approved, the maintainer wishes to merge the git history from the preparatory place into Fedora master. However a merge commit with --allow-unrelated-histories has to be created because of the pointless initial README commit.
--allow-unrelated-histories
I've requested an opt-in for fedpkg request-repo to indicate I don't want initial commit in the repo, such as for example --no-initial-commit. That could then add such option to the json posted at fedora-scm-requests, for example initial-commit: false. This was implemented.
fedpkg request-repo
--no-initial-commit
initial-commit: false
Here I'd like to request that fedrepo_req-admin honors such flag and does not create the initial commit if the option is set to false.
false
Thanks.
This originated at https://pagure.io/fedora-infrastructure/issue/6651
A new item "initial_commit": false is added to ticket when new option --no-initial-commit is specified to request-repo.
"initial_commit": false
request-repo
If it is not specified, ticket content is as normal.
https://pagure.io/fedpkg/pull-request/240
Hi team, is there any plan to implement this?
@cqi there is currently no maintainer for this project. Feel free to submit a PR and I'll review it.
Login to comment on this ticket.