summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Debian/Dgit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm
index e2a503d..f33b173 100644
--- a/Debian/Dgit.pm
+++ b/Debian/Dgit.pm
@@ -107,7 +107,7 @@ sub shellquote {
local $_;
foreach my $a (@_) {
$_ = $a;
- if (m{[^-=_./0-9a-z]}i) {
+ if (!length || m{[^-=_./0-9a-z]}i) {
s{['\\]}{'\\$&'}g;
push @out, "'$_'";
} else {