packit source-git init [Options] UPSTREAM_REF SOURCE_GIT DIST_GIT
Initialize SOURCE_GIT as a source-git repo by applying downstream
patches from DIST_GIT as Git commits on top of UPSTREAM_REF.
SOURCE_GIT needs to be an existing clone of the upstream repository.
UPSTREAM_REF is a tag, branch or commit from SOURCE_GIT.
SOURCE_GIT and DIST_GIT are paths to the source-git and dist-git
repos. Branch names can be specified, separated by colons.
If a branch name is specified for SOURCE_GIT, the branch is checked
out and reset to UPSTREAM_REF.
If a branch name is specified for DIST_GIT, the branch is checked
out before setting up the source-git repo. This branch is expected
Each Git commit created in SOURCE_GIT will have a 'From-dist-git-commit'
trailer to mark the hash of the dist-git commit from which it is created.
To learn more about source-git, please check
$ packit source-git init v2.3.1 src/acl:rawhide rpms/acl:rawhide
$ packit source-git init --pkg-tool centpkg v2.3.1 src/acl rpms/acl
- --upstream-url TEXT
Git URL of the upstream repository. It is saved in the source-git configuration if it is specified.
- --upstream-remote TEXT
Name of the remote pointing to the upstream repository. If --upstream-url is not specified, the fetch URL of this remote is saved in the source-git configuration as the Git URL of the upstream project. Defaults to 'origin'.
- --pkg-tool TEXT
Name or path of the packaging tool used to work with sources in the dist-git repo. A variant of 'rpkg'. Defaults to 'fedpkg' or the tool configured in the Packit configuration.
- --pkg-name TEXT
The name of the package in the distro. Defaults to the directory name of DIST_GIT.