Commits

Ian Lewis  committed 4558717

Added repositories directory as a config parameter and added the default mercurial-server repositories directory as the default value.

  • Participants
  • Parent commits 082d2ed

Comments (0)

Files changed (2)

File app/models/project_observer.rb

     repository.project = project
 
     # repository.vendor = 'Mercurial'
-    repository.attributes = {:url => "/tank/hgrepos/#{project.identifier}"}
+    repository.attributes = {:url => config['repositories_dir'] + "/#{project.identifier}"}
     repository.save
 
 		#project.post(:repository, :vendor => 'Mercurial', :repository => {:url => "/tank/hgrepos/#{project.identifier}"})

File config/mercurial-server-dirs.yml

 production:
+  repositories_dir: /var/lib/mercurial-server/repos
   projects_dir: /var/projects
   user_keys_dir: /var/users
   ssh_key_field_name: SSH Key