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. This commit will have a 'From-source-git-com‐
24 mit' Git-trailer appended to it, to mark the hash of the source-git
25 commit from which it is created.
26
27 The source archives are retrieved from the upstream URLs specified in
28 the spec-file and uploaded to the lookaside cache in dist-git only if
29
30 Examples:
31
32 To update a dist-git repo from source-git without uploading the source-
33 archive to the lookaside cache and creating a commit with the updates,
34 run:
35
36
37 $ packit source-git update-dist-git src/curl rpms/curl
38
39 To also commit the changes and upload the source-archive to the looka‐
40 side-cache specify -m and --pkg-tool:
41
42
43 $ packit source-git update-dist-git -m'Update from source-git'
44 --pkg-tool fedpkg src/curl 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 -f, --force
70 Don't check the synchronization status of the source-git and
71 dist-git repos prior to performing the update.
72
73
74
75 2022-06-2P9ACKIT SOURCE-GIT UPDATE-DIST-GIT(1)