From c357fe0f35b780ab3f91fec59573cb584f48aa76 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 25 Jun 2019 13:31:02 +0200 Subject: [PATCH] [DEV] add prune in fetch --- island/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/island/commands.py b/island/commands.py index 0795304..8b39c88 100644 --- a/island/commands.py +++ b/island/commands.py @@ -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")