mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
patman: Untangle settings from gitutil
The gitutil module is supposed to be independent from patman but one piece was missed in the series which separated them. Move the settings setup out of gitutil Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f9b84f9141
commit
e70fdbd7e4
@ -26,11 +26,15 @@ from patman import checkpatch
|
||||
from patman import patchstream
|
||||
from patman import patchwork
|
||||
from patman import send
|
||||
from patman import settings
|
||||
|
||||
|
||||
def setup():
|
||||
"""Do required setup before doing anything"""
|
||||
gitutil.setup()
|
||||
alias_fname = gitutil.get_alias_file()
|
||||
if alias_fname:
|
||||
settings.ReadGitAliases(alias_fname)
|
||||
|
||||
|
||||
def do_send(args):
|
||||
|
||||
@ -693,9 +693,6 @@ def setup():
|
||||
# Check for a git alias file also
|
||||
global USE_NO_DECORATE
|
||||
|
||||
alias_fname = get_alias_file()
|
||||
if alias_fname:
|
||||
settings.ReadGitAliases(alias_fname)
|
||||
cmd = log_cmd(None, count=0)
|
||||
USE_NO_DECORATE = (command.run_one(*cmd, raise_on_error=False)
|
||||
.return_code == 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user