dpt-upstream-repo1
Add upstream git repository as git remote upstream-repo
Usage
dpt upstream-repo
[{-g | -u}]
Overview
dpt upstream-repo adds the upstream Git repository as a git remote named upstream-repo. The URL for the repository is read from debian/upstream/metadata's Repository field.
In case debian/upstream/metadata doesn't exist, it is created with dpt-debian-upstream(1).
Options
-
-g -
Don't create debian/upstream/metadata.
Used for initial cloning, e.g. with mr up: We want the upstream repo being added if debian/upstream/metadata exists.
The letter
gis used for historical reasons because initially this option only suppressed the automatic committing to thegit repository.
-
-u -
Update the URL of the upstream-repo git remote. The value is read from the same places as for the initial creation.
-uimplies-g, i.e. we also don't create debian/upstream/metadata on updates.
Copyright & license
- Copyright 2013-2022 gregor herrmann [email protected]
- Copyright 2014 David Bremner [email protected]
- Copyright 2015 Axel Beckert [email protected]
- Copyright 2016 Alex Muntada [email protected]
This program is free software, licensed under the same term as perl.
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.
-u since Debian 9 (Stretch).