chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Innards: Improve mktree_in_ud_from_only_subdir message
[dgit.git]
/
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) = <*/.>;
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;
$dirs[0] =~ m#^([^/]+)/\.$# or die;
my $dir = $1;
changedir $dir;