From 6fbd72db82512479410ad578a694e62324ecc802 Mon Sep 17 00:00:00 2001 From: Toopy Date: Tue, 20 Sep 2016 16:50:42 +0200 Subject: [PATCH] Fix git get_diff TypeError when fetch (#4881) --- source_control/git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source_control/git.py b/source_control/git.py index 5c5618403a1..8b85df27f44 100644 --- a/source_control/git.py +++ b/source_control/git.py @@ -424,7 +424,8 @@ def get_diff(module, git_path, dest, repo, remote, depth, bare, before, after): return { 'prepared': '>> Newly checked out %s' % after } elif before != after: # Ensure we have the object we are referring to during git diff ! - fetch(git_path, module, repo, dest, after, remote, depth, bare, '') + git_version_used = git_version(git_path, module) + fetch(git_path, module, repo, dest, after, remote, depth, bare, '', git_version_used) cmd = '%s diff %s %s' % (git_path, before, after) (rc, out, err) = module.run_command(cmd, cwd=dest) if rc == 0 and out: