Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Cleanup module names to be less likely to crash

  • Loading branch information...
commit 004ae965d69771fb3aeedbee262cb98b48f0b607 1 parent 13f2993
Andrew Thompson authored February 08, 2011
2  src/egitd.app.src
@@ -2,7 +2,7 @@
2 2
   [{description, "The Erlang git-daemon"},
3 3
    {vsn, "0.0.0"},
4 4
    {modules, []},
5  
-   {registered, [server]},
  5
+   {registered, [egitd_server]},
6 6
    {applications, [kernel, stdlib]},
7 7
    {mod, {egitd_app, []}},
8 8
    {start_phases, []}
2  src/conf.erl → src/egitd_conf.erl
... ...
@@ -1,4 +1,4 @@
1  
--module(conf).
  1
+-module(egitd_conf).
2 2
 -export([read_conf/1, convert_path/2, eval_erlang_expr/1, eval_erlang_expr/2,
3 3
          concat/2, namespace3/1, md5_namespace3/1, hexmod8/1]).
4 4
 
2  src/git_client.erl → src/egitd_connection.erl
... ...
@@ -1,4 +1,4 @@
1  
--module(git_client).
  1
+-module(egitd_connection).
2 2
 -behaviour(gen_server).
3 3
 
4 4
 -record(state, {
4  src/server.erl → src/egitd_server.erl
... ...
@@ -1,4 +1,4 @@
1  
--module(server).
  1
+-module(egitd_server).
2 2
 -export([start_link/0, init/1]).
3 3
 
4 4
 start_link() ->
@@ -41,7 +41,7 @@ try_listen(Times) ->
41 41
     
42 42
 loop(LSock) ->
43 43
   {ok, Sock} = gen_tcp:accept(LSock),
44  
-  {ok, Pid} = git_client:start_link(Sock),
  44
+  {ok, Pid} = egitd_connection:start_link(Sock),
45 45
   gen_tcp:controlling_process(Sock, Pid),
46 46
   loop(LSock).
47 47
   
2  src/egitd_sup.erl
@@ -24,6 +24,6 @@ init([]) ->
24 24
   
25 25
   {ok, {{one_for_one, 100, 300},
26 26
     [{server,
27  
-       {server, start_link, []},
  27
+       {egitd_server, start_link, []},
28 28
        permanent, 10000, worker, [server]}
29 29
     ]}}.

0 notes on commit 004ae96

Please sign in to comment.
Something went wrong with that request. Please try again.