https://prefect.io logo
Title
b

Bernardo Galvao

01/19/2023, 10:10 AM
Hey, is it possible to override a git-based a file-storage block - either github or gitlab - to get the git repo at a specific git ref, upon
prefect deployment build
? (Same way you can pass an override to a docker-container) Edit: corrected the command from git to prefect, my bad
t

Tim-Oliver

01/19/2023, 10:23 AM
I think what you want is to define the
Reference
in the git-block.
b

Bernardo Galvao

01/19/2023, 10:26 AM
Right, but I may need to do that at
prefect deployment build
. I have three models, each living in a different branch. For each model, a deployment with a different
Reference
. Can I override the
Reference
parameter on the fly (for which the syntax I would like know) or do I have to create a block for each branch?
t

Tim-Oliver

01/19/2023, 10:38 AM
Oh, now I get it. I have a block for each branch (results in many blocks).