diff options
| author | Scott Sandler <ssandler@wayfair.com> | 2014-06-16 15:41:10 -0400 |
|---|---|---|
| committer | Scott Sandler <ssandler@wayfair.com> | 2014-06-16 15:41:10 -0400 |
| commit | 7c1112bfe968a71599f9e3e0d39041f6b95a7d62 (patch) | |
| tree | a89883e5b9b0dd15d6b73a06885831bb69e12901 /lib/gitlab_update.rb | |
| parent | ca425566d0266a1786019153757e283d7d246450 (diff) | |
| download | gitlab-shell-7c1112bfe968a71599f9e3e0d39041f6b95a7d62.tar.gz | |
GitlabUpdate: use stripped path for repo_name
Diffstat (limited to 'lib/gitlab_update.rb')
| -rw-r--r-- | lib/gitlab_update.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_update.rb b/lib/gitlab_update.rb index 4b0673f..3857346 100644 --- a/lib/gitlab_update.rb +++ b/lib/gitlab_update.rb @@ -9,7 +9,7 @@ class GitlabUpdate @config = GitlabConfig.new @repo_path = repo_path.strip - @repo_name = repo_path + @repo_name = @repo_path @repo_name.gsub!(config.repos_path.to_s, "") @repo_name.gsub!(/\.git$/, "") @repo_name.gsub!(/^\//, "") |
