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

infinite unstaged changes because of recursive submodules #11

Open
andry81 opened this issue Jan 8, 2023 · 1 comment
Open

infinite unstaged changes because of recursive submodules #11

andry81 opened this issue Jan 8, 2023 · 1 comment

Comments

@andry81
Copy link

andry81 commented Jan 8, 2023

Another may be issued here of recursed submodules w/o links creation is that you can never make them always up to date pointing the last commit. One of submodules would always be out of date pointing the previous commit.

A -> B
B -> A

The gil pull on A will make unstaged changes for it. Then, the A push make the B out of date. The git pull on B will make unstaged changes for it. Then, the B push make the A out of date. And so on..

So in case of looped submodules, one will always has unstaged changes.

@andry81
Copy link
Author

andry81 commented Jan 8, 2023

To test:

https://github.com/andry81-tests/gil-test1-A
https://github.com/andry81-tests/gil-test1-B

If call gil update first time from not Administrator console:

  • There always shall be unstaged changes.

If call gil update first time from Administrator console:

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