mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
exp init: don't try tracking params if they are skipped
This commit is contained in:
committed by
Saugat Pachhai
parent
6e0dfb94e4
commit
dd0d4f5a2c
@@ -286,7 +286,8 @@ def init(
|
||||
with _disable_logging(), scm.track_file_changes(autostage=True):
|
||||
stage.dump(update_lock=False)
|
||||
stage.ignore_outs()
|
||||
scm.track_file(params)
|
||||
if params:
|
||||
scm.track_file(params)
|
||||
else:
|
||||
raise DvcException("Aborting ...")
|
||||
return stage
|
||||
|
||||
Reference in New Issue
Block a user