Verify git's behavior with platform path conventions in .gitmodules #60
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
datalad/datalad-core#60
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think the normal behavior is "everything in POSIX notation". However, I could not convince myself that we can rely on this behavior. https://github.com/datalad/datalad/issues/3795 appears to confirm this. It also means that datalad itself will have generated gitmodules files with a problematic setup at some point.
This needs to be investigated:
git submodule adddoes on windows with a recent versionlibgit2 implements a forced conversion of backslashes to slashes (https://github.com/libgit2/libgit2/pull/3307). This is not nice (a backslash is a legal non-separate element of a POSIX path). However, the presence of such a path would be a portability issue. IMHO it boils done when and where to pay the price for putting a non-POSIX path into .gitmodules. I think:
.gitmodulesIf would make the latter point conditional on the investigation on what
git submodule adddoes these days.Consider the options to adjust
read_gitmodules*()to normalize paths on-read, and guarantee POSIX conventions for consuming code -- maybe even returningPurePosixPathinstances...