#215 RFE: fedpkg request-repo: Add option to request no initial commits
Closed: Fixed 5 years ago Opened 5 years ago by churchyard.

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.

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.

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.

I'd like to request 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.

Thanks.

This originated at https://pagure.io/fedora-infrastructure/issue/6651


FWIW, when requesting a branch, you can use the --no-git-branch flag. This doesn't help with the master branch but it helps with all the others.

Metadata Update from @cqi:
- Issue set to the milestone: 1.34

5 years ago

Metadata Update from @cqi:
- Issue tagged with: RFE

5 years ago

Metadata Update from @cqi:
- Issue assigned to cqi

5 years ago

Metadata Update from @cqi:
- Issue set to the milestone: NEXT (was: 1.34)

5 years ago

Metadata Update from @cqi:
- Issue tagged with: partner

5 years ago

Metadata Update from @cqi:
- Issue set to the milestone: 1.35 (was: NEXT)

5 years ago

Commit 857823e fixes this issue

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #240 Merged 5 years ago