'updates branch from remote sources'

def fetch(self):

    if (self.version.lower() != 'head'):
        (rc, out, err) = self._command(['pull', '-r', self.version], cwd=self.dest)
    else:
        (rc, out, err) = self._command(['pull'], cwd=self.dest)
    if (rc != 0):
        self.module.fail_json(msg='Failed    to    pull')
    return (rc, out, err)
