def get_tag(self, tag_name):
"""Get tag info though tag name"""
- outs, _, ret = self._git_inout('show',
+ outs, err, ret = self._git_inout('show',
['-s', '--pretty=format:###',
tag_name])
if ret:
return tag
def branch_contains(self, cmitid):
- outs, _errs, ret = self._git_inout('branch',
+ """shows only the branches that contain the named commit(commitid)"""
+ outs, _, ret = self._git_inout('branch',
['-a', '--contains', cmitid])
if not ret:
branches = []
# fetch latest code if local dir already exists
if os.path.isdir(localdir) and \
- _update_gitproject(localdir, gitpath="%s/%s" %(giturl,gerritprj)):
+ _update_gitproject(localdir, gitpath="%s/%s" %(giturl, gerritprj)):
return True
try: