Closed dade-hms closed 2 years ago
@dade-hms I've never seen this behavior. Can you please check the target branch info at the top of the dialog before you push your change? That target branch should update dynamically when you use the checkboxes or input lines of the plugins. It would help if you could check if the target branch in the UI is correct or not.
For that i can reply. Because it was the second time this occurred, I triple checked everything in UI before clicking the submit button. The target branch was correct, both at top (next to the 3 commits) and bottom. Note that it doesn't really tell a lot because the local branch was made to track that target branch so it would have been displayed on top too in case of a normal push.
I think, we are facing the same topic.
The plugin generates the following command: git -c credential.helper= -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/current_local_branch:refs/heads/refs/for/master --set-upstream
It creates a remote branch Origin/refs/for/master instead of using the magical Gerrit branches. This happens when you push a local branch which has no tracked remote branch.
The consequence is that we cannot use the plugin for pushing and we have do pushing with a workaround by using commands in terminal. We like to use the plugin also for pushing because it is easier.
@uwolfer Can you fix this problem?
IntelliJ Version: 2021.3.1 Gerrit Plugin Version: 1.2.5-203 Gerrit Version: 3.3.4
@benno-mueller-saxess: Can you reproduce this issue all the time, or only randomly? Can you see what is wrong with the issued git push command?
Hi @uwolfer I can reproduce it all the time.
Maybe it is an issue of IntelliJ itself (see https://youtrack.jetbrains.com/issue/IDEA-282180 )
@benno-mueller-saxess: The referenced issue should be available in the next release of IntelliJ - please report back if that resolves your issue.
@uwolfer The issue is fixed by IntelliJ in Version 2021.3.3
We have a strange behavior here, the plugin pushed a commit as a normal push instead of as a review.
Situation:
editing a review that depends on 2 other reviews those reviews target a branch other than master committing and choosing "commit and push" in the push dialogs:
In the version control logs on intellij i find:
This behavior never happened before and happened twice this week. This might be related to the fact it's the first time we do both branch targeting, hashtags and chained reviews on the same review.
It looks like the checkbox "submit to gerrit" was prechecked by intellij in both occurences, but the model didn't match this value. Most of the time it's not prechecked and we have to manually check it.
intellij version: 2019.2.3 community edition gerrit plugin version: 1.2.2-146 gerrit version: 3.0.1