ApplicationSet controller "unable to resolve git revision" for new branches - any way to trigger a refresh? #23590
-
Hey folks, got a question: We have a pipeline that executes on merge requests and runs an When the pipeline runs shortly after the source branch has been pushed to the repository, the I'm assuming it's the repo server that's responsible for tracking branches against the repository and I haven't been able to find a way to trigger a refresh/fetch/whatever to tell it to get the latest branches. Is anyone aware of a way to programmatically tell the repo server (or whatever the appropriate workload might be) to update its list of known branches? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured this out. The RepoServerServiceClient interface has a method called |
Beta Was this translation helpful? Give feedback.
Figured this out. The RepoServerServiceClient interface has a method called
GetGitFiles
, and the request options you can pass to it include aNoRevisionCache
field that, when set totrue
, will trigger a cache refresh and get the latest refs.