chiark / gitweb /
Import fix: Switch back to unpa branch on patch import iterations.
[dgit.git] / dgit
diff --git a/dgit b/dgit
index acb456373190fcd29e555eaf3353befbfc70c4ef..1e7c923eea6e8070b3f2254af6f8a85570d05aa4 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -2367,6 +2367,8 @@ END
        my $path = $ENV{PATH} or die;
 
        foreach my $use_absurd (qw(0 1)) {
        my $path = $ENV{PATH} or die;
 
        foreach my $use_absurd (qw(0 1)) {
+           runcmd @git, qw(checkout -q unpa);
+           runcmd @git, qw(update-ref -d refs/heads/patch-queue/unpa);
            local $ENV{PATH} = $path;
            if ($use_absurd) {
                chomp $@;
            local $ENV{PATH} = $path;
            if ($use_absurd) {
                chomp $@;