summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Debian/Dgit.pm13
1 files changed, 10 insertions, 3 deletions
diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm
index a530f0f..829725c 100644
--- a/Debian/Dgit.pm
+++ b/Debian/Dgit.pm
@@ -84,7 +84,7 @@ BEGIN {
gdr_ffq_prev_branchinfo
parsecontrolfh parsecontrol parsechangelog
getfield parsechangelog_loop
- playtree_setup);
+ playtree_setup playtree_write_gbp_conf);
# implicitly uses $main::us
%EXPORT_TAGS = ( policyflags => [qw(NOFFCHECK FRESHREPO NOCOMMITCHECK)],
playground => [qw(record_maindir $maindir $local_git_cfg
@@ -1078,10 +1078,17 @@ sub playtree_setup () {
print GA "* $negate_harmful_gitattrs\n" or confess "$!";
close GA or confess "$!";
+ playtree_write_gbp_conf();
+}
+
+sub playtree_write_gbp_conf (;$) {
+ my ($ignore_new) = @_;
+ $ignore_new //= 'false';
+
open GC, "> .git/gbp.conf" or confess "$!";
- print GC <<'END' or confess $!;
+ print GC <<"END" or confess $!;
[pq]
-ignore-new = false
+ignore-new = $ignore_new
END
close GC or confess "$!";
}