summaryrefslogtreecommitdiffstats
path: root/pre_commit
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-08 12:54:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-08 12:54:48 +0000
commitd7da8ad135cc84931411dbf961ac8576dd73187c (patch)
tree26134c9cf386c41b7424943e0ab7eaa874f66041 /pre_commit
parentReleasing debian version 2.10.0-2. (diff)
downloadpre-commit-d7da8ad135cc84931411dbf961ac8576dd73187c.tar.xz
pre-commit-d7da8ad135cc84931411dbf961ac8576dd73187c.zip
Merging upstream version 2.10.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit')
-rw-r--r--pre_commit/languages/golang.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pre_commit/languages/golang.py b/pre_commit/languages/golang.py
index 91ade1e..d6165d9 100644
--- a/pre_commit/languages/golang.py
+++ b/pre_commit/languages/golang.py
@@ -69,7 +69,8 @@ def install_environment(
repo_src_dir = os.path.join(directory, 'src', guess_go_dir(remote))
# Clone into the goenv we'll create
- helpers.run_setup_cmd(prefix, ('git', 'clone', '.', repo_src_dir))
+ cmd = ('git', 'clone', '--recursive', '.', repo_src_dir)
+ helpers.run_setup_cmd(prefix, cmd)
if sys.platform == 'cygwin': # pragma: no cover
_, gopath, _ = cmd_output('cygpath', '-w', directory)