git-svn: shorten glob error message
Error messages should attempt to fit within the confines of an 80-column terminal to avoid compatibility and accessibility problems. Furthermore the word "directories" can be misleading when used in the context of git refnames. Signed-off-by: Eric Wong <normalperson@yhbt.net>
This commit is contained in:
@ -8,8 +8,8 @@ sub new {
|
||||
$re =~ s!/+$!!g; # no need for trailing slashes
|
||||
my (@left, @right, @patterns);
|
||||
my $state = "left";
|
||||
my $die_msg = "Only one set of wildcard directories " .
|
||||
"(e.g. '*' or '*/*/*') is supported: '$glob'\n";
|
||||
my $die_msg = "Only one set of wildcards " .
|
||||
"(e.g. '*' or '*/*/*') is supported: $glob\n";
|
||||
for my $part (split(m|/|, $glob)) {
|
||||
if ($pattern_ok && $part =~ /[{}]/ &&
|
||||
$part !~ /^\{[^{}]+\}/) {
|
||||
|
Reference in New Issue
Block a user