From 5d33b29abdbcc0b7c3328ae0e4271baf9672b23a Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Sun, 14 Dec 2025 22:10:00 -0300 Subject: [PATCH] bugfix: uso env actual en vez de rama actual para listar ramas --- src/git_flow/command/branch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/git_flow/command/branch.py b/src/git_flow/command/branch.py index b6c8d06..73d1818 100644 --- a/src/git_flow/command/branch.py +++ b/src/git_flow/command/branch.py @@ -46,6 +46,7 @@ class BranchCommand(Command): self.current_branch = Git.get_current_branch() self.environments = self.flowconfig["flow.branches"].split(",") + (current_environment, _) = self.get_branch_env_and_type(self.current_branch) if args.trash: self.show_branches(TRASH_BRANCH_PREFIX) @@ -56,7 +57,7 @@ class BranchCommand(Command): self.show_all_branches() elif args.environment is None: self.show_envs() - self.show_env_branches(self.current_branch) + self.show_env_branches(current_environment) elif args.environment in self.environments: self.show_envs() self.show_env_branches(args.environment)