Package: git-buildpackage Version: 0.9.39 Severity: wishlist Tags: patch Hi,
Context: discussion at https://lists.debian.org/debian-devel/2025/12/msg00127.html Please consider making git-buildpackage emit Git-Tag-Info tags when building a source package, similarly to git-debpush. That provides an audit trail, making it easy to know which commit was used when building a package. Such a patch could be used as a basis: diff --git i/gbp/scripts/buildpackage.py w/gbp/scripts/buildpackage.py index 36ad8d02..733fe936 100755 --- i/gbp/scripts/buildpackage.py +++ w/gbp/scripts/buildpackage.py @@ -572,6 +572,10 @@ def main(argv): 'GBP_BUILD_DIR': build_dir}) )(dir=build_dir) + if repo.is_clean()[0]: + dpkg_args.append('--source-option=-DGit-Tag-Info=tag=%s' % repo.head) + dpkg_args.append('--changes-option=-DGit-Tag-Info=tag=%s' % repo.head) + # Finally build the package: gbp.log.info("Performing the build") RunAtCommand(options.builder, Best, Lucas

