diff --git a/src/git_flow/git.py b/src/git_flow/git.py index 1224106..02e9399 100644 --- a/src/git_flow/git.py +++ b/src/git_flow/git.py @@ -74,10 +74,7 @@ class Git: @staticmethod def _get_references(kind: str): prefix = "refs/" + kind - return list(map( - lambda r: r.removeprefix(prefix), - Git("for-each-ref", prefix + "*", format="%(refname)").lines(), - )) + return Git("for-each-ref", prefix + "**", format="%(refname:short)").lines() @staticmethod def is_repository() -> bool: