[DEV] simplify fetch commands
This commit is contained in:
parent
7eb2a7d171
commit
9f0584d6c3
@ -58,6 +58,10 @@ def execute(arguments):
|
|||||||
id_element = 0
|
id_element = 0
|
||||||
for elem in all_project:
|
for elem in all_project:
|
||||||
id_element += 1
|
id_element += 1
|
||||||
|
# configure remote name:
|
||||||
|
if argument_remote_name == "":
|
||||||
|
argument_remote_name = elem.select_remote["name"]
|
||||||
|
|
||||||
base_display = tools.get_list_base_display(id_element, len(all_project), elem)
|
base_display = tools.get_list_base_display(id_element, len(all_project), elem)
|
||||||
debug.info("fetch: " + base_display)
|
debug.info("fetch: " + base_display)
|
||||||
tools.wait_for_server_if_needed()
|
tools.wait_for_server_if_needed()
|
||||||
@ -73,12 +77,6 @@ def execute(arguments):
|
|||||||
|
|
||||||
# simply update the repository ...
|
# simply update the repository ...
|
||||||
debug.verbose("Fetching project: ")
|
debug.verbose("Fetching project: ")
|
||||||
# fetch the repository
|
|
||||||
cmd = "git fetch"
|
commands.fetch(git_repo_path, argument_remote_name)
|
||||||
if argument_remote_name != "":
|
|
||||||
cmd += " " + argument_remote_name
|
|
||||||
else:
|
|
||||||
cmd += " " + elem.select_remote["name"]
|
|
||||||
debug.verbose("execute : " + cmd)
|
|
||||||
multiprocess.run_command_direct(cmd, cwd=git_repo_path)
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user