I have a dvc setup where the git/dvc repo, the data-file directory and the dvc-cache directory are all peers.
are all directories at the same level
All the files under test-files were added using dvc add test-files
my-test-repo/test-files.dvc contains this line:
./dvc/config contains this line
dir = …/…/my-test-dvc-cache
I did a dvc push and all the file went to the specified remote.
I did a git clone and a dvc pull (on several different machines) and all the files came down in the directory structure specified above.
Code which runs from the repo and uses the files works.
However, when I modify a data file, I am having trouble saving it.
I changed a file in the test-files directory and dvc status shows that test-files is modified.
$ dvc status
When I do dvc commit it gives this error message:
$ dvc commit
ERROR: failed to commit - unable to commit changed stage: ‘test-files.dvc’. Use
-f|--force to force.
So I entered dvc commit -f and it complains about files outside of the repo.
I read that it is ok to have files outside the repo and the original push and pull operations worked fine.
ERROR: unexpected error - Cmd(‘git’) failed due to: exit code(128)
cmdline: git ls-files C:\test-files
stderr: ‘fatal: C:\test-files: ‘C:\test-files’ is outside repository at ‘C:\test-files/my-test-repo’’
It seems like dvc doesn’t care that the data files are outside the repo, but the commit command is try to perform git commands on those files and git doesn’t like them being outside the repo.
Is that what’s going on?
Is there something I can do about it?