dpt-upstream-repo(1)

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 g is used for historical reasons because initially this option only suppressed the automatic committing to the git repository.

-u

Update the URL of the upstream-repo git remote. The value is read from the same places as for the initial creation.

-u implies -g, i.e. we also don't create debian/upstream/metadata on updates.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

-u since Debian 9 (Stretch).

From pkg-perl-tools 0.82 in Debian 13 (Trixie). Parsed by carta from the page's man source.