purescript / spago

🍝 PureScript package manager and build tool
BSD 3-Clause "New" or "Revised" License
792 stars 132 forks source link

fix: error "Could not parse any remotes from the output of `git remote --verbose`." #1266

Closed srghma closed 3 months ago

srghma commented 3 months ago

Description of the change

now it handles spaces too, not only tabs

also ssh://

Error was

$ ~/projects/spago/bin/index.dev.js publish -p open-drawing --verbose 
....
✘ Could not parse any remotes from the output of `git remote --verbose`.

$ git remote --verbose
origin  ssh://git@github.com/purescript-open-community/purescript-open-drawing.git (fetch)
origin  ssh://git@github.com/purescript-open-community/purescript-open-drawing.git (push)

Checklist:

P.S.: the above checks are not compulsory to get a change merged, so you may skip them. However, taking care of them will result in less work for the maintainers and will be much appreciated 😊