Closed pdelboca closed 4 years ago
When creating a dataset (and a repository) add and commit the .lfsconfig file with the url to the git lfs server.
.lfsconfig
The content of the file should be:
[remote "origin"] lfsurl = <url_to_the_git_lfs_server>/<org_name>/<repo_name>
Here is a code implementation in JS we can use as guideline:
getRepoConfigFiles(repoName) { const repoUrl = `${this.serverUrl}/${this.user}/${repoName}` return [ new GitFile('.gitattributes', 'data/* filter=lfs diff=lfs merge=lfs -text'), new GitFile('.lfsconfig', '[remote "origin"]\n\tlfsurl = ' + repoUrl) ] }
Tasks:
after_create
When creating a dataset (and a repository) add and commit the
.lfsconfig
file with the url to the git lfs server.The content of the file should be:
Here is a code implementation in JS we can use as guideline:
Tasks:
after_create
interface to retrieve the config variable and commit the file when the repository is created