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

push: do not push .dir file for directory with missing files #4353

Merged
merged 3 commits into from
Aug 10, 2020

Conversation

pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Aug 7, 2020

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Fixes #4343.

If a directory has files missing in both local cache and on the remote, we should still try to push the files we have locally, but should not push the .dir file. Otherwise, index will think the full directory is present in the remote after the partial push.

@pmrowla pmrowla requested review from efiop, skshetry and pared August 7, 2020 07:04
name,
)
break
else:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't else be intended to match the if?

Copy link
Contributor Author

@pmrowla pmrowla Aug 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's intended to be for ... else ..., if we get through the list of missing files and none of them belong to the current directory, then we hit the else case and queue the .dir file upload

@efiop efiop merged commit 78458ee into iterative:master Aug 10, 2020
@pmrowla pmrowla deleted the 4343-push-incomplete-dir branch August 10, 2020 13:31
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.

dvc push: when not all files are in local cache, still pushes the hash.dir file, breaking remote repository.
3 participants