diff options
-rw-r--r-- | Debian/Dgit.pm | 1 | ||||
-rw-r--r-- | debian/changelog | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 5e0bbd5..ba1c288 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -137,6 +137,7 @@ sub messagequote ($) { sub shellquote { my @out; local $_; + defined or confess 'internal error' foreach @_; foreach my $a (@_) { $_ = $a; if (!length || m{[^-=_./:0-9a-z]}i) { diff --git a/debian/changelog b/debian/changelog index 4754f17..7c2faac 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,9 @@ dgit (3.6~) unstable; urgency=medium - * + Minor improvements: + * Call `confess' to print a stack trace when we pass undef to + shellquote (eg as a result of debugcmd). Turns an undefined + warning into an explicit internal error. -- |