chiark / gitweb /
dgit: Make maybe_unapply_patches_again reset $patches_applied_dirtily
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 Sep 2016 21:39:43 +0000 (22:39 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 11 Sep 2016 17:56:03 +0000 (18:56 +0100)
That makes it idempotent.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index c105aea..7ccaec4 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3884,6 +3884,7 @@ sub maybe_unapply_patches_again () {
        if $patches_applied_dirtily & 01;
     rmtree '.pc'
        if $patches_applied_dirtily & 02;
+    $patches_applied_dirtily = 0;
 }
 
 #----- other building -----