[DEV] add prune in fetch
This commit is contained in:
parent
a52d7a307b
commit
c357fe0f35
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user