diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-12-11 17:22:28 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-12-11 17:22:28 +0100 |
commit | ff84530c0aa72d2a035ce64749687e559a641600 (patch) | |
tree | 23ee8e3356a0757162b1ae48186d289a827a6688 /lib | |
parent | 1a75d086b53d799ac10f77acfb198f2c5ea95621 (diff) | |
download | gitlab-shell-ff84530c0aa72d2a035ce64749687e559a641600.tar.gz |
Remove trailing slashes from gitlab_url
They do not play nice with gitlab-workhorse (or rather Golang net/http
DefaultServemux).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb index caca176..a8d03f3 100644 --- a/lib/gitlab_config.rb +++ b/lib/gitlab_config.rb @@ -24,7 +24,7 @@ class GitlabConfig end def gitlab_url - @config['gitlab_url'] ||= "http://localhost/" + (@config['gitlab_url'] ||= "http://localhost").sub(%r{/*$}, '') end def http_settings |