From c5a9e3cb1b20c916653f670ff7149169f899ca9d Mon Sep 17 00:00:00 2001 From: Valery Sizov <vsv2711@gmail.com> Date: Wed, 15 Feb 2012 00:42:46 +0200 Subject: [PATCH] Bug#326: Always empty repositories if trailing slash is missed in base_path --- app/models/repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/repository.rb b/app/models/repository.rb index f4fdfe54b5..8f9f974625 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -56,7 +56,7 @@ class Repository end def path_to_repo - GIT_HOST["base_path"] + path + ".git" + File.join(GIT_HOST["base_path"], "#{path}.git") end def update_repository -- 2.30.9