Skip to content

Conversation

@efiop
Copy link
Contributor

@efiop efiop commented Jan 23, 2020

We shouldn't try to automatically checkout in detached HEAD state, as we
might break the rebase process.

Fixes #3107

  • ❗ Have you followed the guidelines in the Contributing to DVC list?

  • πŸ“– Check this box if this PR does not require documentation updates, or if it does and you have created a separate PR in dvc.org with such updates (or at least opened an issue about it in that repo). Please link below to your PR (or issue) in the dvc.org repo.

  • ❌ Have you checked DeepSource, CodeClimate, and other sanity checks below? We consider their findings recommendatory and don't expect everything to be addressed. Please review them carefully and fix those that actually improve code or fix bugs.

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

We shouldn't try to automatically checkout in detached HEAD state, as we
might break the rebase process.

Fixes treeverse#3107
@efiop efiop changed the title install: post-checkout: run only on branches/tags [WIP] install: post-checkout: run only on branches/tags Jan 23, 2020

def _install_hook(self, name, cmd):
command = (
'[ "$3" = "0" ]'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line was basically breaking other hooks previously, as it only makes sense for post-checkout.

@efiop efiop changed the title [WIP] install: post-checkout: run only on branches/tags install: post-checkout: run only on branches/tags Jan 23, 2020
@efiop efiop merged commit c2def08 into treeverse:master Jan 24, 2020
@efiop efiop deleted the 3107 branch January 24, 2020 15:03
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.

cannot rebase if a new file is created which is not present in .gitignore in the base branch

2 participants