Instead of questionable use of / slash index search or reliance
on implicit behaviour in path.Base() shave of URI parts by matching
regular expressions on them. Afterwards apply path.Base() and
do some sanity checks.
Note that net/url.Parse unfortunately can't be used in this context
because it has a stricter behaviour than needed here.
NameFromRepository now extracts the name
of a repository from a wider range of
repo urls. It is now more permissive towards
invalid/incorrect urls.
The test case has been extended.
This closes#6
IntelliJ cannot handle very long relative paths in the "<module>" tag
for some reason so we try to generate a short relative path. This was an
issue when the current working dir is inside a symlink.
Always resolve the symlinks before returning the current working
directory name. Functions like filepath.Walk do not handle symlinks
well.
Found out the hard way by @kroepke - Thanks!
Use the transport of the given graylog-project URL to decide how to
clone all other repositories.
Also remove obsolete --use-ssh and --use-https flags from bootstrap command.
Fixes#4