diff options
author | Michael <michael@fallo.ws> | 2013-03-10 13:07:48 +0000 |
---|---|---|
committer | Michael <michael@fallo.ws> | 2013-03-10 13:07:48 +0000 |
commit | af323545326b06a301905d07f15c9a199514cb24 (patch) | |
tree | 24397fe0404e7e8ffd068c36a9324518f89d68ed /lib/gitlab_update.rb | |
parent | 4bbda0b2590fc5081638c113c7cf74b60c8680b2 (diff) | |
download | gitlab-shell-af323545326b06a301905d07f15c9a199514cb24.tar.gz |
gitlab_update: Stop matching all
Commenting out . to stop all single char matches rather then just ".git"
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 156e385..8282897 100644 --- a/lib/gitlab_update.rb +++ b/lib/gitlab_update.rb @@ -6,7 +6,7 @@ class GitlabUpdate @repo_path = repo_path.strip @repo_name = repo_path @repo_name.gsub!(GitlabConfig.new.repos_path.to_s, "") - @repo_name.gsub!(/.git$/, "") + @repo_name.gsub!(/\.git$/, "") @repo_name.gsub!(/^\//, "") @key_id = key_id |