show more info when successfully init dvc repo (#5190)

* show more info when successfully init dvc repo

* Ignore 'line too long' linter error

* simpler solution

* black reformat

* don't break dvc init --no-scm case

* Update dvc/repo/init.py

Co-authored-by: Saugat Pachhai <[email protected]>

* Update dvc/repo/init.py

Co-authored-by: Saugat Pachhai <[email protected]>
This commit is contained in:
Yihao Jiang
2021-01-07 16:05:35 +05:45
committed by GitHub
co-authored by Saugat Pachhai
parent 9331ad23e4
commit fa5487ebfe
+3 -1
View File
@@ -82,8 +82,10 @@ def init(root_dir=os.curdir, no_scm=False, force=False, subdir=False):
[config.files["repo"], dvcignore, proj.plots.templates.templates_dir]
)
logger.info("Initialized DVC repository.\n")
if scm.ignore_file:
scm.add([os.path.join(dvc_dir, scm.ignore_file)])
logger.info("\nYou can now commit the changes to git.\n")
logger.info("You can now commit the changes to git.\n")
return proj