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 /.

Symptoms:

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
KCGMOAKSKV55GN22DC6JA572CMNLB2FWYCQJ7HU52PV76FDL556AC