Package: git-buildpackage
Version: 0.7.2
Severity: normal
Tags: upstream

Hello,

`gbp pq import` failed because of ref whose name contain
`refs/heads/patch-queue/master`:

      $ gbp pq -v import
      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']
      gbp:debug: ['git', 'show-ref', 'refs/heads/patch-queue/master']
      gbp:error: Patch queue branch 'patch-queue/master'. already exists. Try 
'rebase' instead.
      $ git show-ref refs/heads/patch-queue/master
      de12fcecaa8b1760ab7ec65a1581dc3a5d881d0b 
refs/wip/wtree/refs/heads/patch-queue/master

removing this ref solved the problem for me. Maybe using the `--verify`
option of `git show-ref` could solve this.

Thanks.


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

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

Versions of packages git-buildpackage depends on:
ii  devscripts            2.15.10
ii  git                   1:2.7.0-1
ii  man-db                2.7.5-1
ii  python-dateutil       2.4.2-1
ii  python-pkg-resources  18.8-1
ii  python-six            1.10.0-2
pn  python:any            <none>

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

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
-- 
Rémi Vanicat

Reply via email to