The sound distributed version control system

#538 [patch] Windows path separator bugs

Opened by Altafen on September 15, 2021
Altafen on September 15, 2021

On Windows, pijul doesn’t consistently use \ as a directory separator. I’m not sure if there are other places like this, but path::components only accepts \ and is sometimes given /.


I don’t know if it’d be better to normalize paths more consistently, or to accept either slash like this patch does, but it does fix both symptoms. I’m pretty sure the Windows file APIs will accept either slash.

Altafen added a change on September 15, 2021