diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-08 12:54:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-08 12:54:45 +0000 |
commit | bca8f5a4c8c889d62dcfbaa864d118650a1b7e48 (patch) | |
tree | 203e083679ba58439d9232ef4bd34ad60689bf15 /pre_commit | |
parent | Adding upstream version 2.10.0. (diff) | |
download | pre-commit-bca8f5a4c8c889d62dcfbaa864d118650a1b7e48.tar.xz pre-commit-bca8f5a4c8c889d62dcfbaa864d118650a1b7e48.zip |
Adding upstream version 2.10.1.upstream/2.10.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | pre_commit/languages/golang.py | 3 |
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) |