Hello Guido, On Tuesday, August 27, 2024 9:52:31 AM CEST Guido Günther wrote:
> If you use `export-dir` then `--git-export=WC` should achieve the > desired behavior. Thanks a lot for your help, `git-export=WC` is indeed the option I was looking for. However, I have one minor question. I noticed the following output which seemed strange to me. ```console $ git branch * debian/bookworm $ cat ~/.gbp.conf [DEFAULT] color = True [buildpackage] export-dir = ../build-area sign-tags = True keyid = <keyid> $ cat debian/gbp.conf [DEFAULT] upstream-tag=v%(version)s upstream-branch=debian/bookworm debian-branch=debian/bookworm [buildpackage] export-dir = ../build-area-shione git-export = WC $ gbp buildpackage --verbose --git-verbose gbp:debug: ['git', 'rev-parse', '--show-cdup'] gbp:debug: ['git', 'rev-parse', '--is-bare-repository'] gbp:debug: ['git', 'rev-parse', '--git-dir'] gbp:debug: /bin/true [] [] gbp:debug: ['git', 'status', '--porcelain'] gbp:debug: ['git', 'symbolic-ref', 'HEAD'] gbp:debug: ['git', 'show-ref', 'refs/heads/debian/bookworm'] gbp:debug: ['git', 'ls-tree', 'HEAD'] gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format'] gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/changelog'] gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format'] gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format'] gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format'] gbp:info: Exporting 'HEAD' to '/home/renken/dev/shione/build-area-shione/ shione-config-tmp' gbp:info: Moving '/home/renken/dev/shione/build-area-shione/shione-config-tmp' to '/home/renken/dev/shione/build-area-shione/shione-config-0.1.0' gbp:debug: ['git', 'show', '--pretty=medium', 'HEAD:debian/source/format'] ``` Notice the `HEAD` here. In order to get the desired result, I had to explicitly call `gbp buildpackage` with `--git-export=WC` which resulted the desired output, `gbp:info: Exporting 'WC' to '/home/renken/dev/shione/build- area-shione/shione-config-tmp'`. I'm sorry in advance if I'm missing something obvious here but why is gbp not picking up this information from `debian/gbp.conf`? You can use this specific commit to reproduce it, https://git.shione.net/ shione.git/commit/?h=debian/ bookworm&id=f1deb27e4e9aab6aa8c9651a1a53045d3c8a2a5e. Make sure to populate `files/etc/wireguard` and install `config-package-dev` prior to executing `gbp`. Thank you!
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ git-buildpackage mailing list [email protected] http://lists.sigxcpu.org/mailman/listinfo/git-buildpackage
