Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-05-29 20:29:54 +0300
committerRobert Speicher <robert@gitlab.com>2017-05-29 20:29:54 +0300
commitfd2993b5349007441bc1cf4734e05696b3797e22 (patch)
treef5c946f50313ccb5ebd819b727b0cef9a13ed449 /app
parentd0b60be33c4487ef561001fc6aed7778954dafa1 (diff)
parent59b8165c9091751ebbae271655fd0eaf3c97ab20 (diff)
Merge branch 'sh-fix-submodules-trailing-spaces' into 'master'
Strip trailing whitespaces in submodule URLs Closes #33018 See merge request !11753
Diffstat (limited to 'app')
-rw-r--r--app/helpers/submodule_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/submodule_helper.rb b/app/helpers/submodule_helper.rb
index 09b73eee8cf..c0763a8a9c4 100644
--- a/app/helpers/submodule_helper.rb
+++ b/app/helpers/submodule_helper.rb
@@ -13,6 +13,7 @@ module SubmoduleHelper
if url =~ /([^\/:]+)\/([^\/]+(?:\.git)?)\Z/
namespace, project = $1, $2
+ project.rstrip!
project.sub!(/\.git\z/, '')
if self_url?(url, namespace, project)