Fixing issue 440:
Problem:
On Windows 10 Backport will always clone, because the projectRoot & repoPath never will be equal, even though they do exist.
A problem with \ vs / .
My solution is to add path.normalize() which should work on both Windows and POSIX.
Feel free to adapt my solution as needed.
Test executed:
Run 1st time: Repo cloned
Run 2nd time: Repo pulled
Run 3th time (after deleting the repo): Repo cloned
Fixing issue 440: Problem: On Windows 10 Backport will always clone, because the projectRoot & repoPath never will be equal, even though they do exist. A problem with \ vs / . My solution is to add path.normalize() which should work on both Windows and POSIX. Feel free to adapt my solution as needed.
Test executed: Run 1st time: Repo cloned Run 2nd time: Repo pulled Run 3th time (after deleting the repo): Repo cloned