From b6bfd8006f64dd4743a4eb583321dbd59eb45980 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 28 Nov 2015 17:40:53 +0000 Subject: [PATCH] Split brain: Actually get gbp pq output back onto dgit-view branch And explain why in a comment. --- dgit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dgit b/dgit index a3e62c71..0812f32a 100755 --- a/dgit +++ b/dgit @@ -2575,7 +2575,8 @@ sub quiltify_splitbrain ($$$$$) { progress "creating patches-applied version using gbp-pq"; open STDOUT, ">/dev/null" or die $!; runcmd shell_cmd 'exec >/dev/null', @gbppq, qw(import); - runcmd @git, qw(update-ref dgit-view HEAD); + # gbp-pq import creates a fresh branch; push back to dgit-view + runcmd @git, qw(update-ref refs/heads/dgit-view HEAD); runcmd @git, qw(checkout dgit-view); } if (($diffbits->{H2O} & 02) && # user has modified .gitignore -- 2.30.2