refactor: realizo parseo de flowconfig antes de ejecutar run, no en __init__
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
from os.path import isfile
|
||||
import sys
|
||||
import datetime
|
||||
import requests
|
||||
@@ -15,7 +16,7 @@ from git_flow.command.init import InitCommand
|
||||
from git_flow.command.merge import MergeCommand
|
||||
from git_flow.command.new import NewCommand
|
||||
from git_flow.command.tag import TagCommand
|
||||
from git_flow.git import BUMP_VERSION, Git
|
||||
from git_flow.git import BUMP_VERSION, FLOWCONFIG_FILE, Git
|
||||
from git_flow.io import *
|
||||
|
||||
|
||||
@@ -54,6 +55,7 @@ class GitFlowCommand(Command):
|
||||
|
||||
for command in self.commands:
|
||||
if command.name() == args.command:
|
||||
command.flowconfig = Git.get_config(FLOWCONFIG_FILE) if isfile(FLOWCONFIG_FILE) else {}
|
||||
return command.run(args)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user