diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2009-09-18 12:54:43 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2009-09-18 12:56:04 -0400 |
commit | 9db86501b9ecd3a28dc5441fd5b59476d14f5c4b (patch) | |
tree | 4f4fbd3d0764de799e1120d03fc4add1c29b60ca | |
parent | c302d2289ef045f7c8e3f2f3c9071414f9d8212b (diff) |
Fix subcommands without --add-url option
'git bz add-url' was dying because the code was expecting all subcommands
to have an --add-url option but add-url doesn't.
-rwxr-xr-x | git-bz | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1972,7 +1972,7 @@ else: global_options, args = parser.parse_args() -if global_options.add_url is None: +if hasattr(global_options, 'add_url') and global_options.add_url is None: global_options.add_url = True if len(args) < min_args or len(args) > max_args: |