From: Ian Jackson Date: Sat, 4 Jun 2016 16:00:51 +0000 (+0100) Subject: Split brain: Create debian/patches in case it does not exist X-Git-Tag: archive/debian/2.0~304 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=a4264dc02181058e3c94227bb6686aeed308e285;hp=fd839af91633221c00872131c34d51e203aa185f;p=dgit.git 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. --- 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: $!";