Skip to content

Commit

Permalink
added recursive repository support for golang
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhfischer authored and asottile committed Feb 6, 2021
1 parent e6caddb commit 34e0ff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pre_commit/languages/golang.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 34e0ff3

Please sign in to comment.