summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-17 00:00:06 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-07-17 13:46:14 +0100
commitc26f96c431c935b9cf8044fae9894bfdcadbbc97 (patch)
treeb137bb557245b4ee749ab46cb5227141cd4970d9 /dgit
parent0658281163715a24c940509ebb8b0a7493e33787 (diff)
Innards: Improve mktree_in_ud_from_only_subdir message
When it finds multiple subdirs, print them.
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit2
1 files changed, 1 insertions, 1 deletions
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;