[PATCH] Allow naming the Git remote.

Mathieu Bridon bochecha at fedoraproject.org
Thu Feb 20 10:26:11 UTC 2014


This only brings in the minor changes necessary now that rpkg has this
feature.
---
 src/fedpkg.conf        | 3 +++
 src/fedpkg/__init__.py | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/fedpkg.conf b/src/fedpkg.conf
index b317941..b1b6764 100644
--- a/src/fedpkg.conf
+++ b/src/fedpkg.conf
@@ -8,3 +8,6 @@ tracbaseurl = https://%(user)s:%(password)s at fedorahosted.org/rel-eng/login/xmlrp
 branchre = f\d$|f\d\d$|el\d$|olpc\d$|master$
 kojiconfig = /etc/koji.conf
 build_client = koji
+
+# Set the following if you want your remote to be named differently
+#remote = origin
diff --git a/src/fedpkg/__init__.py b/src/fedpkg/__init__.py
index 910e448..31aae5e 100644
--- a/src/fedpkg/__init__.py
+++ b/src/fedpkg/__init__.py
@@ -61,7 +61,7 @@ def _check_newstyle_branches(func):
 class Commands(pyrpkg.Commands):
 
     def __init__(self, path, lookaside, lookasidehash, lookaside_cgi,
-                 gitbaseurl, anongiturl, branchre, kojiconfig,
+                 gitbaseurl, anongiturl, branchre, remote, kojiconfig,
                  build_client, user=None, dist=None, target=None,
                  quiet=False):
         """Init the object and some configuration details."""
@@ -70,8 +70,8 @@ class Commands(pyrpkg.Commands):
         # make it a property to potentially use a secondary config
         super(Commands, self).__init__(path, lookaside, lookasidehash,
                                  lookaside_cgi, gitbaseurl, anongiturl,
-                                 branchre, kojiconfig, build_client, user,
-                                 dist, target, quiet)
+                                 branchre, remote, kojiconfig, build_client,
+                                 user, dist, target, quiet)
 
         # New data
         self.secondary_arch = {
-- 
1.8.5.3



More information about the rel-eng mailing list