From 9db86501b9ecd3a28dc5441fd5b59476d14f5c4b Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 18 Sep 2009 12:54:43 -0400 Subject: 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. --- git-bz | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-bz b/git-bz index 4d39dba..d109f3b 100755 --- a/git-bz +++ b/git-bz @@ -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: -- cgit v1.2.3