mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Fix task.set_script(diff="")
does not clear the uncommitted changes (#1106)
This commit is contained in:
parent
190b25a44b
commit
7b85555d0d
@ -2584,15 +2584,15 @@ class Task(_Task):
|
||||
self.reload()
|
||||
script = self.data.script
|
||||
if repository is not None:
|
||||
script.repository = str(repository) or None
|
||||
script.repository = str(repository)
|
||||
if branch is not None:
|
||||
script.branch = str(branch) or None
|
||||
script.branch = str(branch)
|
||||
if script.tag:
|
||||
script.tag = None
|
||||
if commit is not None:
|
||||
script.version_num = str(commit) or None
|
||||
script.version_num = str(commit)
|
||||
if diff is not None:
|
||||
script.diff = str(diff) or None
|
||||
script.diff = str(diff)
|
||||
if working_dir is not None:
|
||||
script.working_dir = str(working_dir)
|
||||
if entry_point is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user