Closed guestliu closed 3 years ago
Like gerrit repo, git-repo-go saved the reference which the user published in a special reference "refs/published/{NAME}" in the repository. This saved special reference is used to prevent duplicate git repo upload
. But running git repo sync
which rebase the working tree to upstream may break the matching of the special published reference.
To work around this issue, you can start a new branch by running git repo start --all {topic-name}
One reasonable solution for this case may be:
See pull request #24 .
Run a bash, we get an error of "Error: branch my_patch is published (but not merged)"
This situation is very common. If we work on a patch for weeks, we often need to run 'git pr' to generate the merge request for the reviewer and handle with the challenges, do some code changes and run 'git pr' again. Sometimes we must run 'git repo sync' to rebase the newest code but we get an error.
In our team development-faq, I suggest the solution like this
It's awful.