1PACKIT SOURCE-GIT INIT(1)packit source-git init ManualPACKIT SOURCE-GIT INIT(1)
2
3
4
6 packit-source-git-init - Initialize SOURCE_GIT as a source-git repo...
7
9 packit source-git init [OPTIONS] UPSTREAM_REF SOURCE_GIT DIST_GIT
10
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 To learn more about source-git, please check
30
31 https://packit.dev/docs/source-git/
32
33 Examples:
34
35
36 $ packit source-git init v2.3.1 src/acl:rawhide rpms/acl:rawhide
37 $ packit source-git init --pkg-tool centpkg v2.3.1 src/acl rpms/acl
38
40 --upstream-url TEXT
41 Git URL of the upstream repository. It is saved in the source-
42 git configuration if it is specified.
43
44 --upstream-remote TEXT
45 Name of the remote pointing to the upstream repository. If
46 --upstream-url is not specified, the fetch URL of this remote is
47 saved in the source-git configuration as the Git URL of the up‐
48 stream project. Defaults to 'origin'.
49
50 --pkg-tool TEXT
51 Name or path of the packaging tool used to work with sources in
52 the dist-git repo. A variant of 'rpkg'. Defaults to 'fedpkg' or
53 the tool configured in the Packit configuration.
54
55 --pkg-name TEXT
56 The name of the package in the distro. Defaults to the direc‐
57 tory name of DIST_GIT.
58
59
60
61 2021-11-25 PACKIT SOURCE-GIT INIT(1)