Skip to content

bug: merging a branch with an updated ref on a read-only repository does not update the read-only repository on the main branch #5978

@wvandeun

Description

@wvandeun

Component

Git Integration

Infrahub version

1.1.7

Current Behavior

When you merge a branch, that has a changed ref on a read-only repository, the ref on the repository will not be updated on the main branch.

Expected Behavior

The ref and commit of the read-only repository get updated in the main branch.

Steps to Reproduce

  • load an instance of Infrahub
  • load demo schema and data
  • create a fork of infrahub-demo-edge
  • set up the fork as a read-only repository in Infrahub
  • create a new commit on the fork repository (with some change)
  • create a new branch in Infrahub
  • in the branch update the ref of the read-only repsository to the new commit you just created
  • let the repository sync
  • create a proposed change
  • merge the proposed change
  • the read-only repository ref and commit will not have been updated in the main branch of the repository

Additional Information

No response

Metadata

Metadata

Assignees

Labels

priority/2This issue stalls work on the project or its dependents, it's a blocker for a releasestate/draftThe redaction of the issue is still a work in progresstype/bugSomething isn't working as expected

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions