We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We push changes to our datasets programmatically. Our git client jGit reports that the hf git server returns null as Content-Type after a push.
A basic kotlin application:
val person = PersonIdent( "padmalcom", "[email protected]" ) val cp = UsernamePasswordCredentialsProvider( "padmalcom", "mysecrettoken" ) val git = KGit.cloneRepository { setURI("https://huggingface.co/datasets/sth/images") setTimeout(60) setProgressMonitor(TextProgressMonitor()) setCredentialsProvider(cp) } FileOutputStream("./images/images.csv").apply { writeCsv(images) } git.add { addFilepattern("images.csv") } for (i in images) { FileUtils.copyFile( File("./files/${i.id}"), File("./images/${i.id + File(i.fileName).extension }") ) git.add { addFilepattern("${i.id + File(i.fileName).extension }") } } val revCommit = git.commit { author = person message = "Uploading images at " + LocalDateTime.now() .format(DateTimeFormatter.ISO_DATE_TIME) setCredentialsProvider(cp) } val push = git.push { setCredentialsProvider(cp) }
The git server is expected to return the Content-Type application/x-git-receive-pack-result.
It is independent from the datasets library.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
We push changes to our datasets programmatically. Our git client jGit reports that the hf git server returns null as Content-Type after a push.
Steps to reproduce the bug
A basic kotlin application:
Expected behavior
The git server is expected to return the Content-Type application/x-git-receive-pack-result.
Environment info
It is independent from the datasets library.
The text was updated successfully, but these errors were encountered: