src-d / borges

borges collects and stores Git repositories.
https://docs.sourced.tech/borges/
GNU General Public License v3.0
52 stars 20 forks source link

Trim spaces from urls when running from file #352

Closed juanjux closed 6 years ago

juanjux commented 6 years ago

Ensure that white spaces is trimmed from the URLs read from a file. ~Please note that in my tests there is an issue where urls read from a text file have an space added to the start (this space is NOT in the text file) so there is another issue that you can add from the friction log or I could add it separately.~

Update: there is no issue, the file really had spaces at the front of each URL but Vim wasn't jumping to it when going to the next line because of my settings, I'm an idiot, still this PR has merit to make the parsing of URLs more robust.

Signed-off-by: Juanjo Alvarez juanjo@sourced.tech