Closed vhp1360 closed 11 months ago
git subrepo commit
will bring the state of the worktree for the subrepo code into the parent project. So if there is a stale worktree I could see that happening, but git subrepo push
does not change the state of the parent project, just updates the .gitrepo to reflect that the upstream and local copies are in sync to reduce the amount of work for the next git subrepo pull
. Is this a code base I can view? If not could you create a minimal test that you could send me to investigate? If not could you run with git subrepo push --debug
and post the out put here?
thanks for your feedback and sorry for being late. I'm sending debug in these days. thanks again
Hello again.
you are right.
I can push without any problem if I won't try to git subrepo commit
before it.
Hello, first of all, let me say thanks for this repo.
I faced a problem. I have repo for example
mainrepo
and usegit subrepo clone URL Global/
insidemainrepo
folder. after some chang, I dogit add .
,git commit
,git push
inmainrepo
folder. all things are Ok. but when I try togit subrepo commit
orgit subrepo push
the code in Global fallback to previous commit. is there any but, or I made a mistake?thanks.