1PACKIT SOURCE-GIT UPpDaAcTkEi-tDIsSoTu-rGcIeT-(g1i)t updateP-AdCiKsItT-gSiOtURMCaEn-uGaIlT UPDATE-DIST-GIT(1)
2
3
4
6 packit-source-git-update-dist-git - Update a dist-git repository using
7 content...
8
10 packit source-git update-dist-git [OPTIONS] SOURCE_GIT DIST_GIT
11
13 Update a dist-git repository using content from a source-git repository
14
15 Update a dist-git repository with patches created from the commits be‐
16 tween <upstream_ref> and the current HEAD of the source-git repo.
17
18 This command, by default, performs only local operations and uses the
19 content of the source-git and dist-git repository as it is: does not
20 checkout branches or fetches remotes.
21
22 A commit in dist-git is created only if a commit message is provided
23 with --message or --file.
24
25 The source archives are retrieved from the upstream URLs specified in
26 the spec-file and uploaded to the lookaside cache in dist-git only if
27
28 Examples:
29
30 To update a dist-git repo from source-git without uploading the source-
31 archive to the lookaside cache and creating a commit with the updates,
32 run:
33
34
35 $ packit -c src/curl/.distro/source-git.yaml update-dist-git
36 src/curl rpms/curl
37
38 To also commit the changes and upload the source-archive to the looka‐
39 side-cache specify -m and --pkg-tool:
40
41
42 $ packit -c src/curl/.distro/source-git.yaml update-dist-git
43 -m'Update from source-git' --pkg-tool fedpkg src/curl
44 rpms/curl
45
47 --upstream-ref TEXT
48 Git ref of the last upstream commit in the current branch from
49 which packit should generate patches (this option implies the
50 repository is source-git).
51
52 --pkg-tool TEXT
53 Name or path of the packaging tool used to work with sources in
54 the dist-git repo. A variant of 'rpkg'.
55
56 Skip retrieving and uploading source archives to the lookaside cache if
57 not specified.
58
59 -m, --message <msg>
60 Commit the changes in the dist-git repository and use <msg> as
61 the commit message.
62
63 Mutually exclusive with -F.
64
65 -F, --file <file>
66 Commit the changes in the dist-git repository and take the com‐
67 mit message from <file>. Use - to read from the standard input.
68
69
70
71 2021-11-2P5ACKIT SOURCE-GIT UPDATE-DIST-GIT(1)