Package: git-buildpackage
Version: 0.7.4
Severity: important

Dear Maintainer,

When I run gbp-dch in a subdirectory of a git repo, it fails to recognize that 
it's in a git repo.

ie if your git repository is ~/git-repo/, and you run gbp-dch in 
~/git-repo/foo/, gbp-dch returns
gbp:error: ~/git-repo/foo/ is not a git repository
However, running it in the root of the git repo works fine.

optix2000@maruyu ~/iroffer/iroffer/iroffer-dinoex-3.30 (git)-[master] % gbp dch 
--verbose
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:error: /home/optix2000/iroffer/iroffer/iroffer-dinoex-3.30 is not a git 
repository
optix2000@maruyu ~/iroffer/iroffer/iroffer-dinoex-3.30 (git)-[master] % git 
rev-parse --show-cdup
../
optix2000@maruyu ~/iroffer/iroffer/iroffer-dinoex-3.30 (git)-[master] % cd ..
optix2000@maruyu ~/iroffer/iroffer (git)-[master] % gbp dch --verbose
gbp:debug: ['git', 'rev-parse', '--show-cdup']
gbp:debug: ['git', 'rev-parse', '--is-bare-repository']
gbp:debug: ['git', 'symbolic-ref', 'HEAD']
gbp:debug: ['git', 'show-ref', 'refs/heads/master']
# Ignore this, as the changelog exists in the subdirectory
gbp:error: Failed to read changelog: [Errno 2] No such file or directory: 
'./debian/changelog'
optix2000@maruyu ~/iroffer/iroffer (git)-[master] %

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages git-buildpackage depends on:
ii  devscripts            2.16.4
ii  git                   1:2.8.1-1
ii  man-db                2.7.5-1
ii  python-dateutil       2.4.2-1
ii  python-pkg-resources  20.10.1-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.224
ii  pristine-tar     1.33
ii  python-requests  2.9.1-3

Versions of packages git-buildpackage suggests:
pn  python-notify  <none>
ii  sudo           1.8.15-1.1
ii  unzip          6.0-20

-- no debconf information

Reply via email to