From 6aa87d1a1a1aa34c79a50a235852d16d3fdd9722 Mon Sep 17 00:00:00 2001
From: Edward Hervey <bilboed@bilboed.com>
Date: Sun, 6 May 2018 13:20:03 +0100
Subject: [PATCH] Move GIT_ORIGIN_PREFIX to GitLab class

This removes the unused definition from bztogl.py.
---
 bztogl/bztogl.py | 2 --
 bztogl/common.py | 5 ++---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/bztogl/bztogl.py b/bztogl/bztogl.py
index 4948eda..9e3ba94 100644
--- a/bztogl/bztogl.py
+++ b/bztogl/bztogl.py
@@ -53,8 +53,6 @@ COMPONENT_MAP = {
     'Widget: GtkSpinButton': 'GtkSpinButton',
 }
 
-GIT_ORIGIN_PREFIX = 'https://git.gnome.org/browse/'
-
 
 def processbug(bgo, target, user_cache, milestone_cache, bzbug):
     print("Processing bug #%d: %s" % (bzbug.id, bzbug.summary))
diff --git a/bztogl/common.py b/bztogl/common.py
index b9a93c6..42d69c0 100644
--- a/bztogl/common.py
+++ b/bztogl/common.py
@@ -4,11 +4,10 @@ import urllib.parse
 
 import gitlab
 
-GIT_ORIGIN_PREFIX = 'https://git.gnome.org/browse/'
-
 
 class GitLab:
     GITLABURL = "https://gitlab-test.gnome.org/"
+    GIT_ORIGIN_PREFIX = 'https://git.gnome.org/browse/'
 
     def __init__(self, token, product, target_project=None, automate=False):
         self.gl = None
@@ -80,7 +79,7 @@ class GitLab:
         return ret_json.get('import_status')
 
     def import_project(self):
-        import_url = GIT_ORIGIN_PREFIX + self.product
+        import_url = self.GIT_ORIGIN_PREFIX + self.product
         print('Importing project from ' + import_url +
               ' to ' + self.target_project)
 
-- 
GitLab