Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Recursive clone support #5

Closed
wants to merge 2 commits into from
Closed

Recursive clone support #5

wants to merge 2 commits into from

Conversation

alebabai
Copy link

@alebabai alebabai commented Oct 8, 2018

what

add --recurse-submodules flag to git clone command

why

#4

add --recurse-submodules flag to git clone command
@alebabai alebabai added the wip label Oct 8, 2018
@alebabai alebabai requested a review from osterman October 8, 2018 15:51
@@ -110,7 +110,7 @@ func (w *FileWorkspace) forceClone(log *logging.SimpleLogger,
if w.TestingOverrideCloneURL != "" {
cloneURL = w.TestingOverrideCloneURL
}
cloneCmd := exec.Command("git", "clone", cloneURL, cloneDir) // #nosec
cloneCmd := exec.Command("git", "clone", "--recurse-submodules", cloneURL, cloneDir) // #nosec
if output, err := cloneCmd.CombinedOutput(); err != nil {
return "", errors.Wrapf(err, "cloning %s: %s", headRepo.SanitizedCloneURL, string(output))
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the comment by the maintainer of Atlantis. He said it needs to support both arg formats based on git version.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if git supports --recursive flag
@osterman
Copy link

Replaced by #11

@osterman osterman closed this Oct 16, 2018
@aknysh aknysh deleted the feature/git-submodules branch October 16, 2018 19:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants