Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md file for submodule command #81

Open
Chintan-Dave opened this issue Feb 23, 2023 · 0 comments
Open

Update README.md file for submodule command #81

Chintan-Dave opened this issue Feb 23, 2023 · 0 comments

Comments

@Chintan-Dave
Copy link

General Information

  • MEGA Version: 9.5
  • iOS Version(s): N/A
  • Devices/Simulators: N/A
  • Reproducible? (Yes/No): Yes

This issue is applicable to public users only.

What happened?

When we edit the URLs in .gitmodules and run git submodule update --init --recursive, it does not use the new URLs but the original ones. Because public user don't have access to the original URLs, they got errors.

What did you expect to happen?

When we run git submodule update.., it should use the new URLs that we specified in .gitmodules.

Possible solution:

git submodule update.. use .git/config file and not .gitmodules. So the changes we made in .gitmodules need to be reflected in .git/config before we run update command.

We can achieve it by running git submodule sync.

git submodule update.. relies on .git/config file and not .gitmodules. So we need to sync the changes from .gitmodules to .git/config before we run update command.

We can do that by running git submodule sync.

If this finding is correct then updating the README.md file would be helpful for other users who encounter the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant