pyinvoke / invoke

Pythonic task management & command execution.
http://pyinvoke.org
BSD 2-Clause "Simplified" License
4.32k stars 365 forks source link

Fix changing directories between drives on Windows #883

Open silvanocerza opened 1 year ago

silvanocerza commented 1 year ago

Fixes #755

I opted to always add the /d flag when calling cd on Windows since it doesn't cause any issues adding it when not changing directories between different drives.

If we check cd is actually changing between different drives it would complicate the fix adding more complexity with little to no advantages