[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#801666: git-dpm: Need a way to set the upstream branch names from within the repository



Package: git-dpm
Version: 0.9.1-1
Severity: important

Hello,

Since the Python team now mandates git-dpm usage, I have to look into how
to use it for my own packages and I immediately came across this
limitation. The only way to configure the name of the various branches is
through "git config". However git configuration cannot be shared via the
repository and this means that a user with a fresh clone will not have the
required configuration...

In my case, I maintain python-django which uses a DEP-14 compliant
branch layout (http://dep.debian.net/deps/dep14/) and each packaging
branch (debian/<codename>) is associated the corresponding upstream branch
(upstream/1.7.x, upstream/1.8.x, etc.).

I want to be able to set the upstream branch from a config file in debian/
much like git-buildpackage offers:
$ cat debian/gbp.conf 
[DEFAULT]
upstream-branch=upstream/1.7.x
debian-branch=debian/sid

-- System Information:
Debian Release: stretch/sid
  APT prefers squeeze-lts
  APT policy: (500, 'squeeze-lts'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages git-dpm depends on:
ii  dpkg-dev  1.18.3
ii  git       1:2.6.1-1

Versions of packages git-dpm recommends:
ii  bzip2           1.0.6-8
ii  devscripts      2.15.9
ii  sensible-utils  0.0.9
ii  xz-utils        5.1.1alpha+20120614-2.1

Versions of packages git-dpm suggests:
ii  pristine-tar  1.33
ii  sharutils     1:4.15.2-1

-- no debconf information


Reply to: