BF: Replace backslashes in file paths when commiting changes#78
Conversation
|
@aforren1 I've been able to replicate your error! The thing I was missing is that there needs to be a subfolder in the file path for it to break. I was testing by making an experiment and just sticking a conditions file and some stimuli in the same folder, but they need to be in a subfolder. It seems that the style of file path for files has to match the style of filepath for the git folder; I just made a project with a stimulus 2 folders deep, then put in So the git project folder is always supplied from the front end with /, but the file path is supplied from Now that I can recreate the error, I can confirm that replacing the \ with / reliably fixes it. Thanks for your help debugging! |
|
Thanks @TEParsons! The other thing that came to mind was maybe differences in git |
|
Seeing as their GitConfigManager only reads and writes to the repo's config file I would guess it doesn't have access to global user config |
@aforren1 and I are still trying to get to the bottom of why this matters, the isomorphic git documentation doesn't say anything to suggest it should, but it seems to break (sometimes) when filepaths have Windows-style slashes in