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

Fix git submodules #18

Merged
merged 2 commits into from
Oct 23, 2018
Merged

Fix git submodules #18

merged 2 commits into from
Oct 23, 2018

Conversation

aknysh
Copy link

@aknysh aknysh commented Oct 23, 2018

what

  • Fix git submodules

why

@aknysh aknysh self-assigned this Oct 23, 2018
@aknysh aknysh requested a review from osterman October 23, 2018 18:09
if err := checkoutCmd.Run(); err != nil {
return "", errors.Wrapf(err, "checking out branch %s", p.Branch)
// Recursively update submodules for the branch
log.Info("updating submodules for branch %q", p.Branch)

Choose a reason for hiding this comment

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

Will this work if:
a) no submodules defined
b) without calling git submoule init first?

Copy link
Author

Choose a reason for hiding this comment

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

a) tested on a repo w/o submodules, the command just returns w/o any errors
b) merged into one command git submodule update --init --recursive, tested on repos with and without submodules

@aknysh aknysh requested a review from osterman October 23, 2018 18:45
@aknysh aknysh merged commit 052ce01 into master Oct 23, 2018
@aknysh aknysh deleted the fix-github-submodules branch October 23, 2018 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git Submodules Not Working
2 participants