mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
added recursive repository support for golang
This commit is contained in:
committed by
Anthony Sottile
parent
e6caddba19
commit
34e0ff3497
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user