From c26f96c431c935b9cf8044fae9894bfdcadbbc97 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 17 Jul 2016 00:00:06 +0100 Subject: Innards: Improve mktree_in_ud_from_only_subdir message When it finds multiple subdirs, print them. --- dgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dgit b/dgit index 1007d81..f46e55a 100755 --- a/dgit +++ b/dgit @@ -1259,7 +1259,7 @@ sub remove_stray_gits () { sub mktree_in_ud_from_only_subdir () { # changes into the subdir my (@dirs) = <*/.>; - die unless @dirs==1; + die "@dirs ?" unless @dirs==1; $dirs[0] =~ m#^([^/]+)/\.$# or die; my $dir = $1; changedir $dir; -- cgit v1.2.3