Skip to content
Snippets Groups Projects
Commit fe4da576 authored by Daniel Silverstone's avatar Daniel Silverstone
Browse files

plugins/source/git.py: Rationalised unused return values


The `assert_ref_in_track()` method's return value was never used so
rationalise it to never return a value.

Signed-off-by: default avatarDaniel Silverstone <daniel.silverstone@codethink.co.uk>
parent 987a57fa
No related branches found
No related tags found
Loading
......@@ -343,13 +343,13 @@ class GitMirror(SourceFetcher):
'--contains', self.ref],
cwd=fullpath,)
if branch:
return True
return
else:
_, tag = self.source.check_output([self.source.host_git, 'tag', '--list', track,
'--contains', self.ref],
cwd=fullpath,)
if tag:
return True
return
detail = "The ref provided for the element does not exist locally in the provided track branch / tag " + \
"'{}'.\nYou may wish to track the element to update the ref from '{}' ".format(track, track) + \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment