From: Ian Jackson Date: Wed, 17 Jul 2019 02:18:31 +0000 (+0100) Subject: Dgit.pm: reflog_cache_insert: Use ensurepath for the reflog X-Git-Tag: archive/debian/9.3~29 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0ec19976d94b346161712a3e4de284fca015fa11;p=dgit.git Dgit.pm: reflog_cache_insert: Use ensurepath for the reflog Otherwise quilt fixup can fail in a too-fresh git tree. Signed-off-by: Ian Jackson --- diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 2004fe1e..a5030df7 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -889,7 +889,7 @@ sub reflog_cache_insert ($$$) { # When we no longer need to support squeeze, use --create-reflog # instead of this: my $parent = $ref; $parent =~ s{/[^/]+$}{}; - ensuredir "$maindir_gitcommon/logs/$parent"; + ensurepath "$maindir_gitcommon/logs", "$parent"; my $makelogfh = new IO::File "$maindir_gitcommon/logs/$ref", '>>' or confess "$!";