From a4264dc02181058e3c94227bb6686aeed308e285 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Jun 2016 17:00:51 +0100 Subject: [PATCH] Split brain: Create debian/patches in case it does not exist When we need to make the .gitignore patch, there may not yet be any debian/patches directory. --- dgit | 1 + 1 file changed, 1 insertion(+) diff --git a/dgit b/dgit index 5b6f6a1f..92f96cef 100755 --- 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: $!"; -- 2.30.2