summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-11-11 23:15:14 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-11-11 23:15:14 +0000
commitf950b20d51c4c0cd4b342e20f0d9f163adc5a377 (patch)
treef7b26f200669aaf476c8d77a00dd32cd36121c0c /dgit
parent6e4722452273d2777e814e1dfeb98b89a1c33a09 (diff)
dgit push-build: Populate the split brain cache if necessary
Closes: #1019454 Reported-by: Simon McVittie <smcv@debian.org> Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit9
1 files changed, 9 insertions, 0 deletions
diff --git a/dgit b/dgit
index 8199de8..29134b8 100755
--- a/dgit
+++ b/dgit
@@ -5086,6 +5086,15 @@ sub prep_push () {
sub cmd_push_built {
prep_push();
+ if (do_split_brain()) {
+ # We may need to make the split brain view now, bedcause if
+ # the user built the package other than with dgit they may
+ # have a correct .dsc, but not populated the cache.
+ #
+ # Do this only in split brain mode, since we don't actually
+ # want to update HEAD!
+ build_maybe_quilt_fixup();
+ }
dopush();
}