chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0658281
)
Innards: Improve mktree_in_ud_from_only_subdir message
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 23:00:06 +0000
(
00:00
+0100)
committer
Ian 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
patch
|
blob
|
history
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;