Skip to content

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, pared and skshetry 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 treeverse: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