title: Temporarily lock a git repository
body: <p>Do you know if there is a way to block committing to a local git repository?  In my build environment, I'm running some git commands through it and it breaks if the user makes a commit during the build.</p>
  
  <p>I would like to lock the repository while the build is in progress then unlock when the build is finished.</p>
  
  <p>Thanks!</p>