feature: cambiar configuraciones de git flow en config local
This commit is contained in:
@@ -27,9 +27,7 @@ def init():
|
|||||||
flowconfig["flow.remote"] = remote
|
flowconfig["flow.remote"] = remote
|
||||||
flowconfig["flow.remote-type"] = remote_type
|
flowconfig["flow.remote-type"] = remote_type
|
||||||
|
|
||||||
Git.set_config(flowconfig, FLOWCONFIG_FILENAME)
|
Git.set_config(flowconfig)
|
||||||
Git("add", FLOWCONFIG_FILENAME).exec()
|
|
||||||
Git("commit", message="feature: initialize git-flow").exec()
|
|
||||||
|
|
||||||
_ensure_all_flow_branches_exist(branches, remote)
|
_ensure_all_flow_branches_exist(branches, remote)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@ class Git:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def set_config(config: dict[str, str], file: str | None = None):
|
def set_config(config: dict[str, str], file: str | None = None):
|
||||||
for key, value in config.items():
|
for key, value in config.items():
|
||||||
Git("config", key, value, file=file).exec()
|
Git("config", key, value, file=file).exec(print="Updating config")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def flow_config(*args, **kwargs):
|
def flow_config(*args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user