summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.pylintrc2
-rw-r--r--gitc_utils.py2
-rwxr-xr-xmain.py2
-rw-r--r--manifest_xml.py2
-rw-r--r--project.py5
5 files changed, 8 insertions, 5 deletions
diff --git a/.pylintrc b/.pylintrc
index c6be7436..413d66a1 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -53,7 +53,7 @@ load-plugins=
53enable=RP0004 53enable=RP0004
54 54
55# Disable the message(s) with the given id(s). 55# Disable the message(s) with the given id(s).
56disable=R0903,R0912,R0913,R0914,R0915,W0141,C0111,C0103,W0603,W0703,R0911,C0301,C0302,R0902,R0904,W0142,W0212,E1101,E1103,R0201,W0201,W0122,W0232,RP0001,RP0003,RP0101,RP0002,RP0401,RP0701,RP0801,F0401,E0611,R0801,I0011 56disable=C0326,R0903,R0912,R0913,R0914,R0915,W0141,C0111,C0103,W0603,W0703,R0911,C0301,C0302,R0902,R0904,W0142,W0212,E1101,E1103,R0201,W0201,W0122,W0232,RP0001,RP0003,RP0101,RP0002,RP0401,RP0701,RP0801,F0401,E0611,R0801,I0011
57 57
58[REPORTS] 58[REPORTS]
59 59
diff --git a/gitc_utils.py b/gitc_utils.py
index 0f3e1818..a388dc27 100644
--- a/gitc_utils.py
+++ b/gitc_utils.py
@@ -127,7 +127,7 @@ def generate_gitc_manifest(gitc_manifest, manifest, paths=None):
127 repo_proj.revisionExpr = None 127 repo_proj.revisionExpr = None
128 128
129 # Convert URLs from relative to absolute. 129 # Convert URLs from relative to absolute.
130 for name, remote in manifest.remotes.iteritems(): 130 for _name, remote in manifest.remotes.iteritems():
131 remote.fetchUrl = remote.resolvedFetchUrl 131 remote.fetchUrl = remote.resolvedFetchUrl
132 132
133 # Save the manifest. 133 # Save the manifest.
diff --git a/main.py b/main.py
index 4f4eb9fc..c5f1e9c3 100755
--- a/main.py
+++ b/main.py
@@ -379,7 +379,7 @@ class _KerberosAuthHandler(urllib.request.BaseHandler):
379 self.context = None 379 self.context = None
380 self.handler_order = urllib.request.BaseHandler.handler_order - 50 380 self.handler_order = urllib.request.BaseHandler.handler_order - 50
381 381
382 def http_error_401(self, req, fp, code, msg, headers): 382 def http_error_401(self, req, fp, code, msg, headers): # pylint:disable=unused-argument
383 host = req.get_host() 383 host = req.get_host()
384 retry = self.http_error_auth_reqed('www-authenticate', host, req, headers) 384 retry = self.http_error_auth_reqed('www-authenticate', host, req, headers)
385 return retry 385 return retry
diff --git a/manifest_xml.py b/manifest_xml.py
index bc4d8c40..295493de 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -972,5 +972,5 @@ class GitcManifest(XmlManifest):
972 def _output_manifest_project_extras(self, p, e): 972 def _output_manifest_project_extras(self, p, e):
973 """Output GITC Specific Project attributes""" 973 """Output GITC Specific Project attributes"""
974 if p.old_revision: 974 if p.old_revision:
975 e.setAttribute('old-revision', str(p.old_revision)) 975 e.setAttribute('old-revision', str(p.old_revision))
976 976
diff --git a/project.py b/project.py
index 3b8604e3..c91085c3 100644
--- a/project.py
+++ b/project.py
@@ -1860,7 +1860,10 @@ class Project(object):
1860 # will fail. 1860 # will fail.
1861 # * otherwise, fetch all branches to make sure we end up with the 1861 # * otherwise, fetch all branches to make sure we end up with the
1862 # specific commit. 1862 # specific commit.
1863 current_branch_only = self.upstream and not ID_RE.match(self.upstream) 1863 if self.upstream:
1864 current_branch_only = not ID_RE.match(self.upstream)
1865 else:
1866 current_branch_only = False
1864 1867
1865 if not name: 1868 if not name:
1866 name = self.remote.name 1869 name = self.remote.name