<div dir="ltr"><div>All,</div><div><br></div><div>This is for those of you who wish to have your personal mesa repo on gitlab.  If you want to keep it on <a href="http://people.freedesktop.org" target="_blank">people.freedesktop.org</a>
 and use cgit, you are more than welcome to continue doing so for the 
foreseeable future and you can ignore this e-mail.  For those who want 
to use gitlab, read on...</div><div><br></div><div>I strongly recommend 
that, if you have a personal mesa repo on GitLab, you make it an 
official fork of the mesa master repo that we will be creating soon.  
There are a couple of reasons for this:</div><div><br></div><div> 1) 
Forks share objects behind the user's back so it should use 
significantly less space on the GitLab server if everyone's personal 
mesa repo is an actual GitLab fork and not a bare repo that they pushed.</div><div><br></div><div> 2)
 Forks have a nice link to the place they were forked from.  This means 
that if you share your repo with someone who isn't super-familiar with 
mesa and freedesktop, they can easily find the original.  Anyone who is 
used to working with GitHub or GitLab should know how to follow parent 
links.</div><div><br></div><div> 3) If (and that is an if) we move to 
the pull-request model, you can only submit a pull request to your 
parent repo so your private repo will have to be a fork.</div><div><br></div><div>Obviously,
 many people have very live and active personal repos already, so I've 
made some tools to help in the transition.  Here's what you need to do 
to set up your personal GitLab repo:</div><div><br></div><div> 0. If you already have a personal repo on GitLab, go to the repo settings, and rename it to something else like mesa-old.</div><div><br></div><div> 1. Got to the master mesa repo at <a href="https://gitlab.freedesktop.org/mesa/mesa" target="_blank">https://gitlab.freedesktop.<wbr>org/mesa/mesa</a> (this link does not work yet but it will after the transition) and click the "Fork" button</div><div><br></div><div> 2. Once the fork is complete, make a fresh clone of your personal repo on your local machine</div><div><br></div><div> 3. In your fresh clone, run this script to clear everything except the "master" branch from your fork: <a href="https://people.freedesktop.org/~jekstrand/git-clear-branches.sh" target="_blank">https://people.freedesktop.<wbr>org/~jekstrand/git-clear-<wbr>branches.sh</a></div><div><br></div><div> 4. Add a read-only remote for your old personal mesa repo</div><div><br></div><div> 5. Run this script to copy all the branches from your old personal mesa repo to your new GitLab repo: <a href="https://people.freedesktop.org/~jekstrand/git-sync-branches.sh" target="_blank">https://people.freedesktop.<wbr>org/~jekstrand/git-sync-<wbr>branches.sh</a></div><div><br></div><div> 6. Delete the fresh clone you used for the transition and update your remotes to point to the new GitLab repo</div><div><br></div><div>I hope all that is helpful and makes the transition smooth for all your GitLab fans out there.</div><div><br></div><div>--Jason<br></div></div>