Commit c5a9e3cb1b20c916653f670ff7149169f899ca9d

Authored by Valery Sizov
1 parent ef396d08

Bug#326: Always empty repositories if trailing slash is missed in base_path

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/repository.rb
@@ -56,7 +56,7 @@ class Repository @@ -56,7 +56,7 @@ class Repository
56 end 56 end
57 57
58 def path_to_repo 58 def path_to_repo
59 - GIT_HOST["base_path"] + path + ".git" 59 + File.join(GIT_HOST["base_path"], "#{path}.git")
60 end 60 end
61 61
62 def update_repository 62 def update_repository