فهرست منبع

sync: fix deprecated command line option -f

In commit d9e5cf0e ("sync: invert --force-broken with --fail-fast") the
force-broken option has been deprecated. Accidentally the option has
been changed from Boolean to Value. This breaks all users of repo with:

  main.py: error: -f option requires an argument

This is easy to avoid by keeping the type.

Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Change-Id: Ia8b589cf41ac756d10c61e17ec8d76ba8f7031f9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/235043
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
Stefan Müller-Klieser 6 سال پیش
والد
کامیت
cfa5cd6727
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      subcmds/sync.py

+ 1 - 0
subcmds/sync.py

@@ -199,6 +199,7 @@ later is required to fix a server side protocol bug.
       self.jobs = 1
 
     p.add_option('-f', '--force-broken',
+                 dest='force_broken', action='store_true',
                  help='obsolete option (to be deleted in the future)')
     p.add_option('--fail-fast',
                  dest='fail_fast', action='store_true',