Skip to content

repo: remind to git add only when using git #1693

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

Closed
wants to merge 1 commit into from
Closed

repo: remind to git add only when using git #1693

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 6, 2019

Fix #1685

@ghost ghost requested review from shcheklein and efiop March 6, 2019 22:02
@@ -93,7 +93,9 @@ def find_dvc_dir(root=None):
return os.path.join(root_dir, Repo.DVC_DIR)

def remind_to_git_add(self):
if not self.files_to_git_add:
is_git_repo = type(self.scm).__name__ == "Git"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we check it by name? Maybe something like:
type(self.scm) is dvc.scm.Git?

Copy link
Author

Choose a reason for hiding this comment

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

uff, great one, @pared 👍

@@ -93,7 +93,9 @@ def find_dvc_dir(root=None):
return os.path.join(root_dir, Repo.DVC_DIR)

def remind_to_git_add(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Also, @pared introduced remind_to_track method in https://github.com/iterative/dvc/pull/1673/files , so if scm is not git it simply won't do anything, so this change seems to be not needed anymore.

@ghost
Copy link
Author

ghost commented Mar 7, 2019

Closing in favor of #1673

@ghost ghost closed this Mar 7, 2019
@ghost ghost deleted the fix-1685 branch March 7, 2019 23:55
This pull request was closed.
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.

2 participants