-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
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
Support push with -f #162
Comments
We cannot force push to osf, so we need to merge here. datalad/datalad-osf#162
Your assessment is correct. A bit of background and possibly a path forward: The git remote helper provided by this extension is a predecessor of http://docs.datalad.org/projects/next/en/latest/generated/datalad_next.gitremotes.datalad_annex.html While datalad-osf can only deal with OSF, this next iteration can be used to perform git IO operations with any service compatible with any git annex special remote implementation. In some sense, this makes the insufficient piece of code (that is causing the issue your report) obsolete. The OSF extension also provides a git-annex special remote implementation, that should work with So while this has not been tried (to my knowledge), you may just be able to reconfigure the The general trajectory for the next update of If you happen to give that a try, it would be great to learn how it went! Thx in advance! |
This is fixed with #176 ❯ datalad create osf
❯ datalad create-sibling-osf
❯ echo 123 > dummy
❯ datalad save
❯ datalad push --to osf
copy(ok): dummy (file) [to osf-storage...]
publish(ok): . (dataset) [refs/heads/master->osf:refs/heads/master [new branch]]
publish(ok): . (dataset) [refs/heads/git-annex->osf:refs/heads/git-annex [new branch]]
action summary:
copy (ok: 1)
publish (ok: 2)
❯ git reset --hard HEAD~1
HEAD is now at 443c058 [DATALAD] new dataset
❯ datalad push --to osf -f gitpush
publish(ok): . (dataset) [refs/heads/master->osf:refs/heads/master e8bf591...443c058 (forced update)]
action summary:
publish (notneeded: 1, ok: 1) |
I did some squashing, and I'd like to push to OSF. Since the commit history is ammended, I need to force push, but the extension doesnt suppost
datalad push --to osf -f gitpush
The text was updated successfully, but these errors were encountered: