Random <tt> usage
[girocco.git] / mob.html
blobc807c5435ef4f3a20829ff072f08ce4c7a2fb249
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
5 <head>
6 <title>repo.or.cz :: About the Mob Account</title>
7 <link rel="stylesheet" type="text/css" href="/gitweb.css"/>
8 <link rel="shortcut icon" href="/git-favicon.png" type="image/png"/>
9 </head>
11 <body>
13 <div class="page_header">
14 <a href="http://git.or.cz/" title="Git homepage"><img src="/git-logo.png" width="72" height="27" alt="git" style="float:right; border-width:0px;"/></a>
15 <a href="/">repo.or.cz</a> / site guide
16 </div>
19 <h1>About the Mob Account</h1>
22 <p>The <tt>mob</tt> account (the name a tribute to the paper
23 <a href="http://www.dreamsongs.com/MobSoftware.html">Mob Software: The Erotic Life of Code</a>)
24 is.a way to enable <em>anonymous push access</em> for your project.
25 This is largely an experiment and may be scrapped in the future if
26 it will not get widespread use, but I think it's an interesting try.
27 The idea is to provide unmoderated <em>side</em> channel for random
28 contributors to work on a project, coming from the same place as
29 e.g. Wikipedia - that given enough interested people, the quality
30 will grow rapidly and occassional "vandalism" will get fixed quickly.
31 Of course this may not work nearly so well for software, but here
32 we are, to give it a try.</p>
34 <h2>For Repository Admins</h2>
36 <p>How it works? First, you need to add the <tt>mob</tt> user to the
37 list of users allowed to push in your project. <tt>mob</tt> is a
38 keyless, passwordless user that anyone can use to push, without
39 any special setup. <strong>But</strong> this does not mean that
40 your project is not in the hands of raging mindless mob! The <tt>mob</tt>
41 user has a special restriction: it can push only to an existing
42 <tt>mob</tt> branch. This means that the second step you need to take
43 is to create a <tt>mob</tt> branch in the repository (e.g.
44 <code>cg branch-add mob git+ssh://repo.or.cz/srv/git/project.git#mob
45 &amp;&amp; cg-push mob</code>). Then the <tt>mob</tt> user
46 will be able to push to that and only that branch, and it won't be
47 able to push whatsoever until you take the second step.</p>
49 <p>To sum it up: Anonymous pushes are allowed <em>only</em> to the <tt>mob</tt>
50 branch and <em>only</em> if you add a <tt>mob</tt> user and do an initial
51 pushout of the <tt>mob</tt> branch.</p>
53 <h2>For Users</h2>
55 <p>To clone the <tt>mob</tt> branch instead of the default <tt>master</tt>
56 branch, paste <tt>#mob</tt> to the URL passed to <tt>cg-clone</tt>.</p>
58 <p><strong>Note that you are taking a huge security risk on yourself
59 if you just blindly grab the mob branch and run it on your
60 system.</strong></p>
62 <h2>For Developers</h2>
64 <p>Set up a remote branch to point at <tt>git+ssh://mob@repo.or.cz/srv/git/project.git#mob</tt>.
65 Then push there. Have fun and enjoy, you are making the history!</p>
67 </body>
68 </html>