But the git apply failed, the error message is the "xxx already exists in working directory" (xxx is the name of the untracked file)
DefeatedOstrich93 what's the clearml-agent
version?
Thanks DefeatedOstrich93
Let me check if I can reproduce it.
DefeatedOstrich93 many thanks I was able to reproduce it (basically newly added files caused git apply to fail)
Fix will be part of the next clearml-agent RC
let me try to describe, i am not sure it will work:
- add
store_code_diff_from_remote: true
in clearml.conf - find a repo, run an experiment
- touch a new file xxx
git add xxx
- clone the task in web UI
- start an agent and enqueue the cloned task
DefeatedOstrich93 what do you mean by "I am wondering why do I need to create files before applying diff ?"git diff
will not list files unless their are added (they are marked as "untracked") think temp files logs etc. until you add a file to git it will basically ignore that file. Make sense ?
I added an untracked file in client, so 'git diff origin' recorded it. After clone the experiment, clearml-agent creates the untrack file first and tries to apply the diff. But the git apply failed, the error message is the "xxx already exists in working directory" (xxx is the name of the untracked file)