Package: git-buildpackage
Version: 0.7.3
Severity: minor

Dear Maintainer,

the package I'm building has its upstream branch on 'master' (the current 
release on tag v0.2.0) and the debian branch for sid on 'debian/sid'. I 
therefore have created a configuration file in 'debian/gbp.conf' with the 
following content, so that I can run 'gbp buildpackage' instead of the lengthy 
'gbp buildpackage --git-upstream-tree=v0.2.0 --git-debian-branch=debian/sid':

[buildpackage]
git-upstream-tree=v0.2.0
git-debian-branch=debian/sid

But when I run "gbp buildpackage --git-verbose" I get:

gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: /bin/true [] []
gbp:debug: ['git', 'status', '--porcelain']
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/debian/sid']
gbp:error: You are not on branch 'master' but on 'debian/sid'
gbp:error: Use --git-ignore-branch to ignore or --git-debian-branch to set the 
branch name.

So it seems that the contents of 'debian/gbp.conf' are not checked before the 
error message regarding the branch names is printed.
I would have expected that the package builds normally.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (1000, 'unstable'), (500, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages git-buildpackage depends on:
ii  devscripts            2.16.2
ii  git                   1:2.8.0~rc3-1
ii  man-db                2.7.5-1
ii  python-dateutil       2.4.2-1
ii  python-pkg-resources  20.7.0-1
ii  python-six            1.10.0-3
pn  python:any            <none>

Versions of packages git-buildpackage recommends:
ii  cowbuilder       0.79
ii  pbuilder         0.223
ii  pristine-tar     1.33
ii  python-requests  2.9.1-3

Versions of packages git-buildpackage suggests:
ii  python-notify  0.1.1-4
ii  sudo           1.8.15-1.1
ii  unzip          6.0-20

-- no debconf information

Reply via email to