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">
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"/>
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 / About the Mob Account
19 <p>The
<tt>mob
</tt> account (the name a tribute to the paper
20 <a href=
"http://www.dreamsongs.com/MobSoftware.html">Mob Software: The Erotic Life of Code
</a>)
21 is.a way to enable
<em>anonymous push access
</em> for your project.
22 This is largely an experiment and may be scrapped in the future if
23 it will not get widespread use, but I think it's an interesting try.
24 The idea is to provide unmoderated
<em>side
</em> channel for random
25 contributors to work on a project, coming from the same place as
26 e.g. Wikipedia - that given enough interested people, the quality
27 will grow rapidly and occassional
"vandalism" will get fixed quickly.
28 Of course this may not work nearly so well for software, but here
29 we are, to give it a try.
</p>
31 <h2>For Repository Admins
</h2>
33 <p>How it works? First, you need to add the
<tt>mob
</tt> user to the
34 list of users allowed to push in your project.
<tt>mob
</tt> is a
35 keyless, passwordless user that anyone can use to push, without
36 any special setup.
<strong>But
</strong> this does not mean that
37 your project is not in the hands of raging mindless mob! The
<tt>mob
</tt>
38 user has a special restriction: it can push only to an existing
39 <tt>mob
</tt> branch. This means that the second step you need to take
40 is to create a
<tt>mob
</tt> branch in the repository (e.g.
41 <code>cg branch-add mob git+ssh://repo.or.cz/srv/git/project.git#mob
42 && cg-push mob
</code>). Then the
<tt>mob
</tt> user
43 will be able to push to that and only that branch, and it won't be
44 able to push whatsoever until you take the second step.
</p>
46 <p>To sum it up: Anonymous pushes are allowed
<em>only
</em> to the
<tt>mob
</tt>
47 branch and
<em>only
</em> if you add a
<tt>mob
</tt> user and do an initial
48 pushout of the
<tt>mob
</tt> branch.
</p>
52 <p>To clone the
<tt>mob
</tt> branch instead of the default
<tt>master
</tt>
53 branch, paste
<tt>#mob
</tt> to the URL passed to
<tt>cg-clone
</tt>.
</p>
55 <p><strong>Note that you are taking a huge security risk on yourself
56 if you just blindly grab the mob branch and run it on your
59 <h2>For Developers
</h2>
61 <p>Set up a remote branch to point at
<tt>git+ssh://mob@repo.or.cz/srv/git/project.git#mob
</tt>.
62 Then push there. Have fun and enjoy, you are making the history!
</p>