summaryrefslogtreecommitdiff
path: root/lib/gitlab_update.rb
diff options
context:
space:
mode:
authorMichael <michael@fallo.ws>2013-03-10 13:07:48 +0000
committerMichael <michael@fallo.ws>2013-03-10 13:07:48 +0000
commitaf323545326b06a301905d07f15c9a199514cb24 (patch)
tree24397fe0404e7e8ffd068c36a9324518f89d68ed /lib/gitlab_update.rb
parent4bbda0b2590fc5081638c113c7cf74b60c8680b2 (diff)
downloadgitlab-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.rb2
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