summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-06-04 17:00:51 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-16 16:47:47 +0100
commita4264dc02181058e3c94227bb6686aeed308e285 (patch)
tree8114f07c3958e63ab0febb643de1135cc8e27cfc /dgit
parentfd839af91633221c00872131c34d51e203aa185f (diff)
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.
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit1
1 files changed, 1 insertions, 0 deletions
diff --git a/dgit b/dgit
index 5b6f6a1..92f96ce 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: $!";