Source: git-buildpackage Version: 0.9.28 Severity: important Test Case ------------ Run this command from your master branch:
gbp pq export What Happens ------------------- $ gbp pq export gbp:info: Generating patches from git (master..patch-queue/master) gbp:error: patch-queue/master not a valid tree-ish $ git status On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) deleted: debian/patches/fix.patch deleted: debian/patches/series What I Expect ------------------ That's a bit destructive of a command if someone is not paying attention. Occasionally, this will result in Debian patches being silently dropped (!), which I why I'm using a slightly elevated severity for this bug. gbp pq export should error when it's not on a patch-queue branch and not make changes. Or when it's instructed to ignore the branch as proposed in https://bugs.debian.org/915629 Thank you, Jeremy Bicha

