From 5feaea236585876180cc4d8cb4c38b34accb8c6c Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 17 Oct 2012 10:33:26 +0300 Subject: [PATCH] submit: fix crash in guessing remote in case upstream is not set Signed-off-by: Markus Lehtonen --- gitbuildsys/cmd_submit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gitbuildsys/cmd_submit.py b/gitbuildsys/cmd_submit.py index baaa6aa..8fe7846 100644 --- a/gitbuildsys/cmd_submit.py +++ b/gitbuildsys/cmd_submit.py @@ -47,6 +47,7 @@ def main(args): try: upstream = repo.get_upstream_branch(target_branch) except GitRepositoryError: + upstream = None pass if not args.remote: if upstream: -- 2.7.4