'Instantiates a new GitRepoHelper
:type uri: string
:param uri: git repository url
:type branch: string
:param branch: git remote branch
:type destination_dir: string
:param destination_dir: path of a dir where to save downloaded code
:type commit: string
:param commit: specific commit to download
:type lbranch: string
:param lbranch: git local branch name, if different from remote
:type base_uri: string
:param base_uri: a closer, usually local, git repository url from where to
fetch content first'

def __init__(self, uri, branch='master', lbranch=None, commit=None, destination_dir=None, base_uri=None):

    self.uri = uri
    self.base_uri = base_uri
    self.branch = branch
    self.commit = commit
    if (destination_dir is None):
        uri_basename = uri.split('/')[(-1)]
        self.destination_dir = os.path.join('/tmp', uri_basename)
    else:
        self.destination_dir = destination_dir
    if (lbranch is None):
        self.lbranch = branch
    else:
        self.lbranch = lbranch
    self.cmd = os_dep.command('git')
