public
Fork of chad/gitjour
Description: Serve git and advertise with bonjour
Homepage: http://rubyforge.org/projects/gitjour
Clone URL: git://github.com/alexvollmer/gitjour.git
Search Repo:
Fixed the way web shares are named and discovered.
alexvollmer (author)
Thu Jun 05 07:56:33 -0700 2008
commit  81c01064bf0f9a2e28bd200d78add7f0dc54a4d5
tree    fa1717b90c2de142190be0aba7e1a3c7028f0b13
parent  38c1327ef70294b65b8269deb9bbe9e208e7e590
...
87
88
89
90
 
91
92
93
...
221
222
223
224
 
225
226
227
...
87
88
89
 
90
91
92
93
...
221
222
223
 
224
225
226
227
0
@@ -87,7 +87,7 @@ module Gitjour
0
 
0
       def web(path=Dir.pwd, *rest)
0
         path = File.expand_path(path)
0
- name = service_name(rest.shift || File.basename(path))
0
+ name = service_name(rest.shift || File.basename(path)) + '.git'
0
         port = rest.shift || 1234
0
         httpd = rest.shift || "webrick"
0
 
0
@@ -221,7 +221,7 @@ HTML
0
       end
0
 
0
       def http_services
0
- service_list("_http._tcp").select { |s| s.name =~ /-gitjour$/ }
0
+ service_list("_http._tcp").select { |s| s.name =~ /.git$/ }
0
       end
0
 
0
       def announce_git(path, name, port)

Comments

    No one has commented yet.