diff options
author | Conley Owens <cco3@android.com> | 2012-11-06 13:14:31 -0800 |
---|---|---|
committer | Conley Owens <cco3@android.com> | 2012-11-06 13:14:31 -0800 |
commit | 8d070cfb254a21ec3f7a07c123165edf1ce379eb (patch) | |
tree | 6d74d599c13bf8c8591d777198cb04b0646c7722 | |
parent | e072a92a9bb9fdf61bbd1df4e8864f8fd52d5a82 (diff) | |
download | git-repo-8d070cfb254a21ec3f7a07c123165edf1ce379eb.tar.gz |
Always show --manifest-server-* options
The --manifest-server-* flags broke the smartsync subcmd since
the corresponding variables weren't getting set. This change
ensures that they will always be set, regardless of whether we are
using sync -s or smartsync.
Change-Id: I1b642038787f2114fa812ecbc15c64e431bbb829
-rw-r--r-- | subcmds/sync.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 15f69f7b..d6389118 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -173,6 +173,12 @@ later is required to fix a server side protocol bug. | |||
173 | p.add_option('--no-clone-bundle', | 173 | p.add_option('--no-clone-bundle', |
174 | dest='no_clone_bundle', action='store_true', | 174 | dest='no_clone_bundle', action='store_true', |
175 | help='disable use of /clone.bundle on HTTP/HTTPS') | 175 | help='disable use of /clone.bundle on HTTP/HTTPS') |
176 | p.add_option('-u', '--manifest-server-username', action='store', | ||
177 | dest='manifest_server_username', | ||
178 | help='username to authenticate with the manifest server') | ||
179 | p.add_option('-p', '--manifest-server-password', action='store', | ||
180 | dest='manifest_server_password', | ||
181 | help='password to authenticate with the manifest server') | ||
176 | if show_smart: | 182 | if show_smart: |
177 | p.add_option('-s', '--smart-sync', | 183 | p.add_option('-s', '--smart-sync', |
178 | dest='smart_sync', action='store_true', | 184 | dest='smart_sync', action='store_true', |
@@ -180,12 +186,6 @@ later is required to fix a server side protocol bug. | |||
180 | p.add_option('-t', '--smart-tag', | 186 | p.add_option('-t', '--smart-tag', |
181 | dest='smart_tag', action='store', | 187 | dest='smart_tag', action='store', |
182 | help='smart sync using manifest from a known tag') | 188 | help='smart sync using manifest from a known tag') |
183 | p.add_option('-u', '--manifest-server-username', action='store', | ||
184 | dest='manifest_server_username', | ||
185 | help='username to authenticate with the manifest server') | ||
186 | p.add_option('-p', '--manifest-server-password', action='store', | ||
187 | dest='manifest_server_password', | ||
188 | help='password to authenticate with the manifest server') | ||
189 | 189 | ||
190 | g = p.add_option_group('repo Version options') | 190 | g = p.add_option_group('repo Version options') |
191 | g.add_option('--no-repo-verify', | 191 | g.add_option('--no-repo-verify', |