#844397 Please add option to gbp-dch to create a signed tag for the --commit result

#844397#5
Date:
2016-11-15 08:54:02 UTC
From:
To:
gbp-dch -R --commit is very convenient in that it not only creates the
changelog entry but also commits it to git. The next step, which I
currently need to do manually, is to create a signed tag, e.g.:

  git tag -s -m "upload 1.0-2 to unstable" debian/1.0-2

It would be nice if gbp-dch had a --tag option, which would do this
automatically for me :).

Thanks!

#844397#10
Date:
2016-11-15 11:48:21 UTC
From:
To:
Hi Michael,

You can already do that with "gbp buildpackge --git-tag-only" but …

… it's perfectly o.k. to have "gbp dch" create the same tags as well.

Given some other work I have to do for stretch this is currently quiet
low on the priority list though.

Cheers,
 -- Guido

#844397#15
Date:
2016-11-16 22:05:41 UTC
From:
To:
Thanks for the hint! That indeed works as expected.
#844397#20
Date:
2024-12-01 21:45:35 UTC
From:
To:
Isn't this feature already implemented?

I have in gbp.conf the line `sign-tags = True` and after each upload I
just run these commands that does the tagging and signing
automatically:

    gbp tag --verbose
    gbp push --verbose

#844397#25
Date:
2025-08-23 18:17:23 UTC
From:
To:
Hi,

I think this bug report could be closed.

The command `gbp tag` does tag and sign tags if gbp.conf has line
`sign-tags = True`. There is also git-debpush that creates the same
DEP-14 conformant tags and signs them (but with additional metadata
used by tag2upload).

It would be unnecessary for `gbp-dch` to create tags. And even if it
was to create tags, it should only do them when invoked with both
`--commit` and `--release` as a sign that the debian/changelog is not
just merely being updated, but that it is the final update for the
intent of an upload.