Flare - Gerrit - Git Problems

This forum is for all Flare issues related to using Source Control.
Post Reply
joshua_cline
Propeller Head
Posts: 35
Joined: Mon Jun 25, 2018 8:45 am

Flare - Gerrit - Git Problems

Post by joshua_cline »

Has anyone successfully integrated Flare and Git when the company uses Gerrit Code Review as the UI for Git?

We are new to Flare and want to use Git for our source control. Our company uses Gerrit Code Review as the UI for Git, and they have it set up so that developers cannot check in code without a work item number (from version 1) and approvals from other developers for code reviews before the code can be pushed into the remote repository--and probably a lot of other things.

When the docs team binds Flare projects to Git (with push on bind selected), the process appears to be working, but then we get all sorts of errors. One says the "Specified remote repository is already bound to, select a newly created repository or import from this one." But when we look in the remote repository, it is empty. We spoke to Madcap Support and one change was to go into Option and set Flare to automatically check for GIT bindings on opening the project, so we closed and reopened the project and all seems well.

Commits worked fine, but since a commit is no different than a save, we felt it should. Pushes on the other hand gave errors: "Push failed due to :'prohibited by Gerrit; ref update access denied", and no email from Git.

Madcap Support has spent hours with us regarding this problem, but we haven't made any progress. Our Release Engineering team tried changing permissions and we got a little further: we got an email but the repository remains empty.

After permissions were changed we got an error from Git about not having a topic, which in our Git/Gerrit land is the work item number from Version1. There’s no place in Flare to enter a work item number.

Has anyone else had similar issues, or worked with Gerrit/Git and Flare? Any suggestions?
joshua_cline
Propeller Head
Posts: 35
Joined: Mon Jun 25, 2018 8:45 am

Re: Flare - Gerrit - Git Problems

Post by joshua_cline »

Also, when you make a change in a topic (Project) and commit, then the objects and index update in the .git folder, but when you make a change to a topic and then ctrl-z (e.g., delete a period and add it back in), and try to commit, Flare does not recognize that change. And, therefore no commit. Anyone else see this? Is this normal?
mbcohn
Jr. Propeller Head
Posts: 7
Joined: Mon Oct 26, 2020 4:09 pm

Re: Flare - Gerrit - Git Problems

Post by mbcohn »

Was this ever resolved? I'm having similar issues. This thread was the single google result for "Specified remote repository is already bound to."
doloremipsum
Sr. Propeller Head
Posts: 290
Joined: Mon Aug 26, 2019 2:11 pm

Re: Flare - Gerrit - Git Problems

Post by doloremipsum »

mbcohn wrote:Was this ever resolved? I'm having similar issues. This thread was the single google result for "Specified remote repository is already bound to."
In my experience, that particular error pops up when you try to push a Flare project to a repo that already has a project in it - there is only allowed to be one project per repo (if you're using the integration).

That probably doesn't have anything to do with the Gerrit related issues, just thought I'd state for the record.
in hoc foro dolorem ipsum amamus, consectimur, adipisci volumus.
Post Reply