Don't run 'gbp dch' when not at root of the tree.

This commit is contained in:
Jelmer Vernooij 2021-03-30 00:18:41 +01:00
parent 02aa737241
commit 10448e36d9

View file

@ -239,7 +239,7 @@ def attempt_build(
source_date_epoch: Source date epoch to set
Returns: Tuple with (changes_name, cl_version)
"""
if run_gbp_dch:
if run_gbp_dch and not subpath:
gbp_dch(local_tree.abspath(subpath))
if build_changelog_entry is not None:
add_dummy_changelog_entry(