Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wvandeun opened this issue Mar 9, 2025 · 0 comments
Labels
priority/2 This issue stalls work on the project or its dependents, it's a blocker for a release state/need-triage This issue needs to be triaged type/bug Something isn't working as expected

Comments

@wvandeun
Copy link
Contributor

wvandeun commented Mar 9, 2025

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

@wvandeun wvandeun added the type/bug Something isn't working as expected label Mar 9, 2025
@exalate-issue-sync exalate-issue-sync bot added state/need-triage This issue needs to be triaged priority/2 This issue stalls work on the project or its dependents, it's a blocker for a release labels Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/2 This issue stalls work on the project or its dependents, it's a blocker for a release state/need-triage This issue needs to be triaged type/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

1 participant