From 8d7fb59d39b7e02f9e9859503c7c423b67286d60 Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Wed, 29 Jul 2026 10:48:12 -0300 Subject: [PATCH] feature: modificar busqueda de config para que busque localmente --- src/git_flow/__init__.py | 2 -- src/git_flow/command/base.py | 3 +-- src/git_flow/command/init.py | 2 +- src/git_flow/git.py | 5 ----- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/git_flow/__init__.py b/src/git_flow/__init__.py index 46e9993..561040c 100644 --- a/src/git_flow/__init__.py +++ b/src/git_flow/__init__.py @@ -50,6 +50,4 @@ SUPPORTED_REMOTE_APIS = [ REPOSITORY_TOKEN_FILENAME = ".repository-token" -FLOWCONFIG_FILENAME = ".flowconfig" - FLOWCONFIG_VERSION = 2 diff --git a/src/git_flow/command/base.py b/src/git_flow/command/base.py index 398cd1d..e905e98 100644 --- a/src/git_flow/command/base.py +++ b/src/git_flow/command/base.py @@ -1,7 +1,6 @@ from git_flow import ( BRANCH_TYPES, REPOSITORY_TOKEN_FILENAME, - FLOWCONFIG_FILENAME, FLOWCONFIG_VERSION, COMMIT_TYPES, GitFlowError, @@ -19,7 +18,7 @@ import rich import rich.panel import questionary -flowconfig = Git.get_config(FLOWCONFIG_FILENAME) if isfile(FLOWCONFIG_FILENAME) else {} +flowconfig = Git.get_config() environments = ( flowconfig["flow.branches"].split(",") if "flow.branches" in flowconfig else [] ) diff --git a/src/git_flow/command/init.py b/src/git_flow/command/init.py index 43f9c71..476d8c1 100644 --- a/src/git_flow/command/init.py +++ b/src/git_flow/command/init.py @@ -1,7 +1,7 @@ import typer import git_flow.command.base as base -from git_flow import FLOWCONFIG_FILENAME, FLOWCONFIG_VERSION, GitFlowError +from git_flow import FLOWCONFIG_VERSION, GitFlowError from git_flow.git import Git app = typer.Typer() diff --git a/src/git_flow/git.py b/src/git_flow/git.py index d882973..9e407bf 100644 --- a/src/git_flow/git.py +++ b/src/git_flow/git.py @@ -1,6 +1,5 @@ import subprocess -from git_flow import FLOWCONFIG_FILENAME from git_flow.io import * @@ -35,10 +34,6 @@ class Git: for key, value in config.items(): Git("config", key, value, file=file).exec(print="Updating config") - @staticmethod - def flow_config(*args, **kwargs): - return Git("config", *args, file=FLOWCONFIG_FILENAME, **kwargs) - @staticmethod def get_current_branch(): return Git("rev-parse", "HEAD", abbrev_ref=True).firstline()