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

ConfigurationScriptSource doesn't update after switching repository base #22970

Closed
agrare opened this issue Apr 1, 2024 · 1 comment · Fixed by #22972
Closed

ConfigurationScriptSource doesn't update after switching repository base #22970

agrare opened this issue Apr 1, 2024 · 1 comment · Fixed by #22972
Assignees

Comments

@agrare
Copy link
Member

agrare commented Apr 1, 2024

When updating a ConfigurationScriptSource to point to a different base repository/fork (e.g. from git@github.com:ManageIQ/manageiq.git to git@github.com:agrare/manageiq.git) the local copy in data/git_repos/:git_repository_id continues to point to the old repository remote.

Steps to reproduce:

  1. Create a Workflows Repository pointing to git@github.com:ManageIQ/workflows-examples.git branch: master
  2. Allow it to sync
  3. Edit the repository setting the scm_url to a fork that has a branch that doesn't exist on the ManageIQ remote, e.g. git@github.com:agrare/workflows-examples.git branch: test
  4. The sync will fail with a missing ref even though git_repository.update_repo was called first
@agrare
Copy link
Member Author

agrare commented Apr 1, 2024

cc @kbrock

@Fryguy Fryguy changed the title ConfigurationScriptSource doesn't update after switchging repository base ConfigurationScriptSource doesn't update after switching repository base Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant