chiark / gitweb /
Reject (rather than ignoring) further options merged witht -wn, -wg, -wd.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 25 Nov 2014 15:14:42 +0000 (15:14 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 25 Nov 2014 15:14:42 +0000 (15:14 +0000)
debian/changelog
dgit

index f035107a0fd9fa8d1cf4cccd89c69f7925dc727d..b6dd3b28dfa64311b15abe8ddfefcc406a2566ec 100644 (file)
@@ -51,6 +51,9 @@ dgit (0.23~) unstable; urgency=low
     options, rather than thinking the user meat an empty value.
     Closes:#763332.
 
+  * Reject (rather than ignoring) further options merged witht -wn, -wg,
+    -wd.
+
  --
 
 dgit (0.22.1) unstable; urgency=high
diff --git a/dgit b/dgit
index 839f93ffe04b34509e6b4131979e231eb65ca3aa..7cbef4e75fb218d2e55a69fa3e1e8ff76c535c3e 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -2732,13 +2732,13 @@ sub parseopts () {
                } elsif (m/^-[vdCk]$/) {
                    badusage
  "option \`$_' requires an argument (and no space before the argument)";
-               } elsif (s/^-wn//s) {
+               } elsif (s/^-wn$//s) {
                    push @ropts, $&;
                    $cleanmode = 'none';
-               } elsif (s/^-wg//s) {
+               } elsif (s/^-wg$//s) {
                    push @ropts, $&;
                    $cleanmode = 'git';
-               } elsif (s/^-wd//s) {
+               } elsif (s/^-wd$//s) {
                    push @ropts, $&;
                    $cleanmode = 'dpkg-source';
                } else {