-
Notifications
You must be signed in to change notification settings - Fork 271
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
Broken after pushing directly into subrepo #577
Comments
Similar problem: #562 |
This is likely to be a game of 21 questions, so I apologize in advance. First if you run |
I have the same issue. git subrepo pull will pull the latest changes properly, updating the .gitrepo file. But no matter what I cannot push the new changes getting this doesn't contain upstream HEAD issue. |
When I perform the pull it gets the latest changes from some "main" branch, I then am trying to push to a different branch which was created off of this "main" to accept the changes which were made in my repo which contains this subrepo. |
After removing the subrepo directory, cloning, fixing the parent hash in subrepo/.gitrepo file I was able to push my changes. But I am still unsure of what the actual issue was. |
But after this clone, when I revert things in my repo so I don't have this clonage history and just do a force pull of the "main" branch things seem to be back to normal. Like I am able to push without doing all these gymnastics. So it seems the deletion of the subrepo and then clone got things back on track. |
Nevermind, my apologies for the spam. I found the issue. Not an issue with gitsubrepo at all.
|
@djova-dolby this isn't spam, it is the honest musings of someone that is encountering unexpected behavior and is valuable. Just because it didn't end up being the same problem doesn't make it less valuable. It looks to me that the messages about being on the latest version of upstream were not effective and I would like some feedback as to what would have worked better to ensure the correct action of doing a non force pull then push would have made this experience more obvious.. I personally like your solution of branching to get your change upstream then fixing it there, it was creative. Maybe we should add something to the error message about that being a viable solution. |
That's possible reason behind my problem is the same. |
I have -Both screenshots represent SubRepo I have
So, I have no idea how history was rewritten. Probably I misuse it ..? |
I used command
|
@admorgan to be honest I am not sure what message improvement could have helped me find the problem sooner. The upstream subrepo we use only allows pushing rebased. So like once I realized I had a commit which was not upstreamed before new changes were pushed to the upstream subrepo it was clear where the problem lay. However maybe something like when you perform the git-subrepo pull some message indicating that you have locally non-upstreamed commits for that subrepo? Not sure how feasible this is though. And please note I am by no means an advanced git-subrepo user, for a while I was just copy-pasting commands to upstream/pull subrepo changes. Only when I started to run into issues did I start to think about how things actually worked. |
After pushing changes directly into subrepo
I'm trying to push
And get only this
Clean does not help :(
Any help?
The text was updated successfully, but these errors were encountered: