From fe1a4ec667208adb277366146f6714017d585b8d Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 12 Jun 2019 15:51:11 +0200 Subject: [PATCH] [DEV] add git fetch command --- island/commands.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/island/commands.py b/island/commands.py index 2bfc02e..9b9042f 100644 --- a/island/commands.py +++ b/island/commands.py @@ -240,3 +240,12 @@ def reset_hard(path_repository, destination): return_value = multiprocess.run_command(cmd, cwd=path_repository) generic_display_error(return_value, "reset_hard", error_only=True) return return_value + + + +def fetch(path_repository, remote_name): + cmd = 'git fetch ' + remote_name + debug.verbose("execute : " + cmd) + return_value = multiprocess.run_command(cmd, cwd=path_repository) + generic_display_error(return_value, "fetch") + return return_value