Skip to content
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

fix(registry): push to remote automatically only on cloned repos #417

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

shcheklein
Copy link
Member

@shcheklein shcheklein commented Sep 19, 2023

Fixes #405

We've changed the semantic of the operation during the recent migration to scmrepo. The key thing is the has_remote(reg.scm) calls and implementation. I think the original intention was to push automatically when we run GTO operations on a remote repo (means we are cloning it into a temp dir, do some op, and push the result back).

TODO

  • Tests
  • Review CLI option description
  • Review docs

Docs

Relevant docs update is here iterative/dvc.org#4879

@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2023

Codecov Report

Patch coverage is 100.00% of modified lines.

Files Changed Coverage
gto/api.py ø
gto/cli.py ø
gto/git_utils.py 100.00%
gto/index.py 100.00%
gto/registry.py 100.00%

📢 Thoughts on this report? Let us know!.

@pmrowla
Copy link
Contributor

pmrowla commented Sep 19, 2023

LGTM, I'm ok with merging this and doing tests in a follow up if a customer needs the fix

@shcheklein shcheklein temporarily deployed to pypi September 23, 2023 22:25 — with GitHub Actions Inactive
@shcheklein shcheklein marked this pull request as ready for review September 23, 2023 22:26
@shcheklein shcheklein merged commit 7da10ee into main Sep 23, 2023
17 checks passed
@shcheklein shcheklein deleted the fix-405 branch September 23, 2023 22:49
@shcheklein
Copy link
Member Author

shcheklein commented Sep 23, 2023

For the record - added tests, updated docs before merging this. It was approved by Peter here #417 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gto should not push on register without --push flag.
3 participants