def _branch_base(self, action: str):
    base = self._repo_base(action)
    if (self._repo == '_meta'):
        return base
    if (self._branch == '_commits'):
        return (base + f'/{self._branch}')
    elif self.ref:
        return (base + f'/commit/{self._ref}')
    else:
        return (base + f'/branch/{self._branch}')
    return base
def _branch_base(self, action: str):
    base = self._repo_base(action)
    if (self._repo == '_meta'):
        return base
    if (self._branch == '_commits'):
        return (base + f'/{self._branch}')
    elif self.ref:
        return (base + f'/commit/{self._ref}')
    else:
        return (base + f'/branch/{self._branch}')
    return base