1PACKIT SOURCE-GIT INIT(1)packit source-git init ManualPACKIT SOURCE-GIT INIT(1)
2
3
4

NAME

6       packit-source-git-init - Initialize SOURCE_GIT as a source-git repo...
7

SYNOPSIS

9       packit source-git init [OPTIONS] UPSTREAM_REF SOURCE_GIT DIST_GIT
10

DESCRIPTION

12       Initialize  SOURCE_GIT  as  a  source-git  repo  by applying downstream
13       patches from DIST_GIT as Git commits on top of UPSTREAM_REF.
14
15       SOURCE_GIT needs to be an existing clone of the upstream repository.
16
17       UPSTREAM_REF is a tag, branch or commit from SOURCE_GIT.
18
19       SOURCE_GIT and DIST_GIT are paths to the source-git and dist-git repos.
20       Branch names can be specified, separated by colons.
21
22       If a branch name is specified for SOURCE_GIT, the branch is checked out
23       and reset to UPSTREAM_REF.
24
25       If a branch name is specified for DIST_GIT, the branch is  checked  out
26       before  setting  up the source-git repo. This branch is expected to ex‐
27       ist.
28
29       Each Git commit created in SOURCE_GIT will have  a  'From-dist-git-com‐
30       mit'  trailer  to mark the hash of the dist-git commit from which it is
31       created.
32
33       To learn more about source-git, please check
34
35           https://packit.dev/docs/source-git/
36
37       Examples:
38
39
40           $ packit source-git init v2.3.1 src/acl:rawhide rpms/acl:rawhide
41           $ packit source-git init --pkg-tool centpkg v2.3.1 src/acl rpms/acl
42

OPTIONS

44       --upstream-url TEXT
45              Git URL of the upstream repository. It is saved in  the  source-
46              git configuration if it is specified.
47
48       --upstream-remote TEXT
49              Name  of  the  remote  pointing  to the upstream repository.  If
50              --upstream-url is not specified, the fetch URL of this remote is
51              saved  in the source-git configuration as the Git URL of the up‐
52              stream project. Defaults to 'origin'.
53
54       --pkg-tool TEXT
55              Name or path of the packaging tool used to work with sources  in
56              the dist-git repo. A variant of 'rpkg'.  Defaults to 'fedpkg' or
57              the tool configured in the Packit configuration.
58
59       --pkg-name TEXT
60              The name of the package in the distro.  Defaults to  the  direc‐
61              tory name of DIST_GIT.
62
63       --ignore-missing-autosetup
64              Do  not  require %autosetup macro to be used in %prep section of
65              specfile. By default, %autosetup is required.
66
67
68
69                                  2022-06-29         PACKIT SOURCE-GIT INIT(1)
Impressum