Closed wolph closed 6 years ago
Do you know how to combine those, so they work with and without git?
echo "https://github.com/NicoHood/gpgit.git" | sed -n 's#.*/##p'
gpgit.git
Adding the line I suggested takes care of it. I could combine the regexes but that wouldn't help with readability
The project currently uses this command to get the project name:
But that doesn't return anything when a origin doesn't have the trailing
.git
(for this repo, the urlhttps://github.com/NicoHood/gpgit
is valid too)Perhaps this should be added as well: