Closed BiRabittoh closed 1 month ago
Oh, I just realized this solution breaks if the name is less than 4 chars, lol. My bad, I should've caught that. Pushed a more robust solution here: https://github.com/icyphox/legit/commit/68f08e38aada8d5e8f89679121beef9104430942
This should work seamlessly, without the need to add any additional config options.
Suppose you have the following two repositories:
repo1
repo2.git
These are the resulting endpoints:
/repo1
works/repo1.git
does not work/repo2
works/repo2.git
worksPreviously, example no. 3 would not work.
This also hides ".git" extensions from the index page.