You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When stg rebase encounters a merge conflict, it stops (which is fine by itself, because a conflict requires manual intervention). With stg push instead of stg rebase it is possible to resolve the conflict, mark it as resolved with git add -u, and commit with stg refresh. I vaguely remember that this was at one point also possible with stg rebase. Now, however, it fails and I'm left in a messy state:
$ stg ref
Error: HEAD and top are not the same.
This can happen if you modify a branch with git.
"stg repair --help" explains more about what to do next.
stg refresh: Command aborted (all changes rolled back)
Thanks for this issue report, @neuschaefer. However, I've stopped working on StGit 1.x with all my effort going toward the upcoming 2.0 release. It would be helpful to know if remains an issue in 2.0. If you could try your use case with either the 2.0.0-beta.3 release or with HEAD of the master branch, that would be greatly appreciated.
EDIT: Embarrassingly, I can't seem to reproduce the issue under stg 1.5 anymore (where it certainly happened was 0.19, and I had installed 1.5 for testing)… It might take me a while to give a conclusive answer.
When
stg rebase
encounters a merge conflict, it stops (which is fine by itself, because a conflict requires manual intervention). Withstg push
instead ofstg rebase
it is possible to resolve the conflict, mark it as resolved withgit add -u
, and commit withstg refresh
. I vaguely remember that this was at one point also possible withstg rebase
. Now, however, it fails and I'm left in a messy state:Version information
The text was updated successfully, but these errors were encountered: