chiark / gitweb /
Create directory .git/dgit when needed during build. Closes: #721428.
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 46099d2ed664a610a35c8ae83d3a604ad8982c80..98fd04d17e1fa1940e38fa0f3cd720ea790e4484 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1055,6 +1055,7 @@ sub build_maybe_quilt_fixup () {
     my $ncommits = 3;
     my $patchname = "auto-$version-$headref-$time";
     my $msg = cmdoutput @git, qw(log), "-n$ncommits";
+    mkpath '.git/dgit';
     my $descfn = ".git/dgit/quilt-description.tmp";
     open O, '>', $descfn or die "$descfn: $!";
     $msg =~ s/\n/\n /g;