refactor: move constants to git_flow module
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import typer
|
||||
|
||||
from git_flow import GitFlowError
|
||||
from git_flow.git import FLOWCONFIG_FILE, Git
|
||||
from git_flow import FLOWCONFIG_FILENAME, GitFlowError
|
||||
from git_flow.git import Git
|
||||
from git_flow.command.base import *
|
||||
|
||||
app = typer.Typer()
|
||||
@@ -25,8 +25,8 @@ def init():
|
||||
if remote:
|
||||
flowconfig["flow.remote"] = remote
|
||||
|
||||
Git.set_config(flowconfig, FLOWCONFIG_FILE)
|
||||
Git("add", FLOWCONFIG_FILE).exec()
|
||||
Git.set_config(flowconfig, FLOWCONFIG_FILENAME)
|
||||
Git("add", FLOWCONFIG_FILENAME).exec()
|
||||
Git("commit", message="feature: initialize git-flow").exec()
|
||||
|
||||
_ensure_all_flow_branches_exist(branches, remote)
|
||||
@@ -43,7 +43,6 @@ def _ensure_is_repository():
|
||||
|
||||
|
||||
def _ensure_not_already_initialized():
|
||||
flowconfig = get_config()
|
||||
if not flowconfig:
|
||||
return
|
||||
elif flowconfig.get("flow.initialized") == "true":
|
||||
|
||||
Reference in New Issue
Block a user