summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-11 10:13:46 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-11 10:13:46 -0700
commit9d03bb102dfd33dc6f9072a3e2c5f17407d8cca3 (patch)
tree30e6884c5e65f187e8721a9e07ecb8824cf88da9
parenteb2c08d83989b70c94b0180ccf12149b2b9b7e69 (diff)
parentaf323545326b06a301905d07f15c9a199514cb24 (diff)
downloadgitlab-shell-9d03bb102dfd33dc6f9072a3e2c5f17407d8cca3.tar.gz
Merge pull request #13 from redorkulated/master
gitlab_update: Stop matching all on .git
-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