[DEV] add prune in fetch

This commit is contained in:
Edouard DUPIN 2019-06-25 13:31:02 +02:00
parent a52d7a307b
commit c357fe0f35

View File

@ -286,8 +286,10 @@ def reset_hard(path_repository, destination):
def fetch(path_repository, remote_name):
def fetch(path_repository, remote_name, prune=True):
cmd = 'git fetch ' + remote_name
if prune == True:
cmd += " --prune"
debug.verbose("execute : " + cmd)
return_value = multiprocess.run_command(cmd, cwd=path_repository)
generic_display_error(return_value, "fetch")