Updates the repo to the given branch or tag.
db_repo_update(
repo_id,
branch = NULL,
tag = NULL,
host = db_host(),
token = db_token(),
perform_request = TRUE
)
The ID for the corresponding repo to access.
Branch that the local version of the repo is checked out to.
Tag that the local version of the repo is checked out to.
Databricks workspace URL, defaults to calling db_host()
.
Databricks workspace token, defaults to calling db_token()
.
If TRUE
(default) the request is performed, if
FALSE
the httr2 request is returned without being performed.
Specify either branch
or tag
, not both.
Updating the repo to a tag puts the repo in a detached HEAD state. Before committing new changes, you must update the repo to a branch instead of the detached HEAD.
Other Repos API:
db_repo_create()
,
db_repo_delete()
,
db_repo_get()
,
db_repo_get_all()