Skip to content

Conversation

@efiop
Copy link
Contributor

@efiop efiop commented May 12, 2020

git diff doesn't throw errors, so we could do the same.

Fixes #3398

  • ❗ I have followed the Contributing to DVC checklist.

  • 📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

@efiop efiop changed the title diff: hanle repo with no commits diff: handle repo with no commits May 12, 2020
`git diff` doesn't throw errors, so we could do the same.

Fixes treeverse#3398
Copy link
Contributor

@jorgeorpinel jorgeorpinel left a comment

Choose a reason for hiding this comment

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

Thanks. Using this branch installed locally I'm still getting the same error output explained in #3398 though.

@efiop
Copy link
Contributor Author

efiop commented May 12, 2020

@jorgeorpinel I'm not able to reproduce. Are you sure you've installed it correctly?

@efiop efiop merged commit 597ab98 into treeverse:master May 13, 2020
@efiop efiop deleted the 3398 branch May 13, 2020 23:14
@efiop
Copy link
Contributor Author

efiop commented May 13, 2020

merging for now. I think you just didn't install correctly.

@jorgeorpinel
Copy link
Contributor

Sounds good. You're probably right. I'll double check with the merged version ASAP.

@jorgeorpinel
Copy link
Contributor

Checked this finally. It's fixed in 1.0.1 but not in 0.94, which I know is normal. Just confirming. Thanks again

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.

diff: no need for error when there's no HEAD (new Git repo)

2 participants