:param repo: Repo URL
        :param branch: Branch name
        :param git_repo: :class:`Repo <git.repo.base.Repo>` instance.
        :param short: Should the short version be returned?
        :return: Commit hash of the currently pulled version for the specified repo/branch

def current_git_hash(self, repo: str, branch: str, git_repo: Repo, short: bool=False) -> str:
        """
        :param repo: Repo URL
        :param branch: Branch name
        :param git_repo: :class:`Repo <git.repo.base.Repo>` instance.
        :param short: Should the short version be returned?
        :return: Commit hash of the currently pulled version for the specified repo/branch
        """
        current_hash = self._current_hashes[self.repo_id(repo)].get(branch, git_repo.head.object.hexsha)

        if short:
            # shortens to minimum 7 characters, however git can make it longer on bigger repos
            return git_repo.git.rev_parse(current_hash, short=7)
        else:
            return current_hash