submit: fix crash in guessing remote in case upstream is not set
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 17 Oct 2012 07:33:26 +0000 (10:33 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 17 Oct 2012 07:34:27 +0000 (10:34 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gitbuildsys/cmd_submit.py

index baaa6aa..8fe7846 100644 (file)
@@ -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: