0

I'm trying to repackage something that is being maintained in a git repo, and has a now-out-of-date debian package existing. I followed these instructions with the exception of turning off pristine-tar support.

But: running gbp buildpackage results in the error: gbp:error: upstream/0.8.0 is not a valid treeish In my repo, upstream is the remote repository I cloned; v0.8.0 is a tag; and in debian/gbp.conf I have git-upstream-tag = v%(version)s but it still seems I don't have it configured to find the right treeish. If I git checkout -b upstream/0.8.0 v0.8.0 to create a branch with that name, everything proceeds just as I'd expect.

What am I doing wrong?

1 Answers1

0
git-upstream-tag = v%(version)s

should be

upstream-tag = v%(version)s

according to gbp.conf(5):

key=value pairs of the command sections reflect the command line options and their settings. For example gbp-buildpackage(1) manualpage contains the --git-export-dir=diirectory option which can be turned into configuration file setting by dropping the --git prefix with:

      [buildpackage]
      export-dir = directory
arand
  • 800