-
Notifications
You must be signed in to change notification settings - Fork 228
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
Git write back: targetRevision:HEAD will assume 'master' #518
Comments
Oops. Seems that the symbolic-ref is not resolving to the remote's default branch, but to the one used by While we'll be looking for an alternative way to get the remote's default branch to resolve |
same issue :( |
Describe the bug
When the Application's targetRevision is set to
HEAD
,argocd-image-updater will try to check out and write back to
master
branch withgit checkout --force master
.Which will fail when the default branch is not
master
on GitHub.Especially:
However, this won't be an issue for ArgoCD, which seems correctly find the HEAD ref to default branch.
To Reproduce
create new GitHub repo with default branch as
main
create application using that repo, with
targetRevision
set toHEAD
Version
v0.12.0
Logs
full log
The text was updated successfully, but these errors were encountered: