chiark / gitweb /
Innards: Improve mktree_in_ud_from_only_subdir message
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 23:00:06 +0000 (00:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Jul 2016 12:46:14 +0000 (13:46 +0100)
When it finds multiple subdirs, print them.

dgit

diff --git a/dgit b/dgit
index 1007d81698ee7a4d40a2ebce667131dbaddc9f2d..f46e55a4e10969f0604f6b22a01aeebe836285e3 100755 (executable)
--- 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;