public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
Fix to use GitoriousConfig["repository_base_path"] for strainer instead of 
hard coded ~/repositories
dysinger (author)
Fri Apr 04 14:20:58 -0700 2008
commit  16b4c14105be66ca4dc88d08cd3aeb738a052c09
tree    77722b49e45b67468b361a245897cd3b23606757
parent  10489d21e3a115fe345f1e9cc3fcdf95eb2c9a16
...
26
27
28
29
 
30
31
32
...
26
27
28
 
29
30
31
32
0
@@ -26,7 +26,7 @@ module Gitorious
0
       attr_reader :path, :verb, :command
0
     
0
       def full_path
0
- File.join(File.expand_path("~"), "repositories", path)
0
+ File.join(GitoriousConfig["repository_base_path"], path)
0
       end
0
     
0
       def parse!
...
85
86
87
88
 
89
90
91
...
85
86
87
 
88
89
90
91
0
@@ -85,7 +85,7 @@ describe Gitorious::SSH::Client do
0
   
0
   it "returns the command we can safely execute with git-shell" do
0
     client = Gitorious::SSH::Client.new(@strainer, "johan")
0
- repos_path = File.join(File.expand_path("~"), "repositories", @strainer.path)
0
+ repos_path = File.join(GitoriousConfig["repository_base_path"], @strainer.path)
0
     client.to_git_shell_argument.should == "git-upload-pack '#{repos_path}'"
0
   end
0
   
...
67
68
69
70
 
71
72
 
 
73
74
75
...
67
68
69
 
70
71
 
72
73
74
75
76
0
@@ -67,9 +67,10 @@ describe Gitorious::SSH::Strainer do
0
     strainer2.should == strainer
0
   end
0
   
0
- it "has the full path from the users home directory" do
0
+ it "has the full path prepended with the gitorious.yml file setting" do
0
     strainer = Gitorious::SSH::Strainer.new("git-upload-pack 'foo/bar.git'").parse!
0
- strainer.full_path.should == File.join(File.expand_path("~"), "repositories", "foo", "bar.git")
0
+ strainer.full_path.should ==
0
+ File.join(GitoriousConfig["repository_base_path"], "foo", "bar.git")
0
   end
0
   
0
   it "sets the path of the parsed command" do

Comments

    No one has commented yet.