summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2009-09-18 12:54:43 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2009-09-18 12:56:04 -0400
commit9db86501b9ecd3a28dc5441fd5b59476d14f5c4b (patch)
tree4f4fbd3d0764de799e1120d03fc4add1c29b60ca
parentc302d2289ef045f7c8e3f2f3c9071414f9d8212b (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-xgit-bz2
1 files changed, 1 insertions, 1 deletions
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: