summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/buildstream/_gitsourcebase.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buildstream/_gitsourcebase.py b/src/buildstream/_gitsourcebase.py
index 7f02af40d..1f539d820 100644
--- a/src/buildstream/_gitsourcebase.py
+++ b/src/buildstream/_gitsourcebase.py
@@ -118,7 +118,7 @@ class _GitMirror(SourceFetcher):
fail_temporarily=True,
cwd=self.mirror)
- def fetch(self, alias_override=None):
+ def fetch(self, alias_override=None): # pylint: disable=arguments-differ
# Resolve the URL for the message
resolved_url = self.source.translate_url(self.url,
alias_override=alias_override,
@@ -470,8 +470,8 @@ class _GitSourceBase(Source):
def get_ref(self):
return self.mirror.ref, self.mirror.tags
- def set_ref(self, ref_data, node):
- if not ref_data:
+ def set_ref(self, ref, node):
+ if not ref:
self.mirror.ref = None
if 'ref' in node:
del node['ref']
@@ -479,8 +479,8 @@ class _GitSourceBase(Source):
if 'tags' in node:
del node['tags']
else:
- ref, tags = ref_data
- node['ref'] = self.mirror.ref = ref
+ actual_ref, tags = ref
+ node['ref'] = self.mirror.ref = actual_ref
self.mirror.tags = tags
if tags:
node['tags'] = []
@@ -493,7 +493,7 @@ class _GitSourceBase(Source):
if 'tags' in node:
del node['tags']
- def track(self):
+ def track(self): # pylint: disable=arguments-differ
# If self.tracking is not specified it's not an error, just silently return
if not self.tracking: