Fixes https://github.com/fsprojects/ProjectScaffold/issues/276. When the ProjectScaffold repo has been cloned via ssh or https the "Initialise git repo" step does not work correctly. This is because the check performed to see if the remote matches the ProjectScaffold repo only tests for the following remote url format:
http://github.com/fsprojects/ProjectScaffold.git
This fix adds support for the additional remote url formats:
https://github.com/fsprojects/ProjectScaffold.git
and
git@github.com:fsprojects/ProjectScaffold.git
to correctly handle when the repo has been cloned by https or ssh.
I'm going to merge this because it looks solid to me... but someone who understands these things a bit better should really look into why the CI keeps getting access violations. :-(
Fixes https://github.com/fsprojects/ProjectScaffold/issues/276. When the ProjectScaffold repo has been cloned via ssh or https the "Initialise git repo" step does not work correctly. This is because the check performed to see if the remote matches the ProjectScaffold repo only tests for the following remote url format:
http://github.com/fsprojects/ProjectScaffold.git
This fix adds support for the additional remote url formats:
https://github.com/fsprojects/ProjectScaffold.git
and
git@github.com:fsprojects/ProjectScaffold.git
to correctly handle when the repo has been cloned by https or ssh.