Has anyone had success using Git storage with an A...
# ask-community
j
Has anyone had success using Git storage with an Azure DevOps repo? Is this supported?
k
Hey @Jessica Smith, we made changes to support this but it’s not fully complete yet I think. Check this for usage. Azure DevOps is tricky cuz they have their own convention different from Github, Bitbucket, and Gitlab
But you might still get this error
j
I will check these out, thanks!
k
just put an empty string of something in the repo to bypass
j
got it figured out. however, the documentation really led me astray.
this bit:
flow = Flow("my-flow")
flow.storage = Git(repo="my/repo", flow_path="/flows/flow.py", repo_host="<http://github.com|github.com>")
had me add a leading forward slash to the flow path, which caused os.path.join to not work properly. not sure if that's a windows/*nix difference
and this one
prefect register -f flow.py
doesn't include the --project argument, or the -p argument, which was very confusing
k
@Marvin open “Misleading Flow Path in Docs”
You’re right that is misleading
j
BTW - this comment on stackoverflow is what got me over the finish line, in case you want to add this to documentation at some point for Azure DevOps: https://stackoverflow.com/questions/53106546/cannot-clone-git-from-azure-devops-using-pat#comment106034429_54147034
k
Thanks. Will add this to the Github issue