chiark / gitweb /
Split brain: Create debian/patches in case it does not exist
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Jun 2016 16:00:51 +0000 (17:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 15:47:47 +0000 (16:47 +0100)
When we need to make the .gitignore patch, there may not yet be any
debian/patches directory.

dgit

diff --git a/dgit b/dgit
index 5b6f6a1..92f96ce 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -2580,6 +2580,7 @@ sub quiltify_splitbrain ($$$$$) {
        !($diffbits->{O2A} & 02)) { # patches do not change .gitignore
        quiltify_splitbrain_needed();
        progress "creating patch to represent .gitignore changes";
+        ensuredir "debian/patches";
        my $gipatch = "debian/patches/auto-gitignore";
        open GIPATCH, ">>", "$gipatch" or die "$gipatch: $!";
        stat GIPATCH or die "$gipatch: $!";