From 0ec19976d94b346161712a3e4de284fca015fa11 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 17 Jul 2019 03:18:31 +0100 Subject: 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 --- Debian/Dgit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Debian/Dgit.pm') diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 2004fe1..a5030df 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 "$!"; -- cgit v1.2.3