fix: create WebDAV collection when reconfiguring sibling to new URL#788
Open
yarikoptic wants to merge 1 commit intodatalad:mainfrom
Open
fix: create WebDAV collection when reconfiguring sibling to new URL#788yarikoptic wants to merge 1 commit intodatalad:mainfrom
yarikoptic wants to merge 1 commit intodatalad:mainfrom
Conversation
Member
Author
|
appveyor setup is unhappy as wants to be ahead for minimal python version if I got it right: could someone look into updating this repo to their desires? otherwise I will just propose a PR to drop 3.9 (done: #789) |
When using `existing='reconfigure'` with create_sibling_webdav, the code uses `git annex enableremote` instead of `initremote`. Unlike initremote, enableremote doesn't create the directory structure on the WebDAV server. This fix adds explicit WebDAV collection creation using MKCOL when reconfiguring to ensure the target directory exists before git-annex tries to use it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3809da4 to
a513a5b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When using
existing='reconfigure'with create_sibling_webdav, the code usesgit annex enableremoteinstead ofinitremote. Unlike initremote, enableremote doesn't create the directory structure on the WebDAV server.This fix adds explicit WebDAV collection creation using MKCOL when reconfiguring to ensure the target directory exists before git-annex tries to use it.
🤖 Generated with Claude Code
I tasked claude to fixup testing locally, here is the result. Yet to review myself etc