code: public GitService getGitService() throws Exception {
      logger.trace("Getting git service.");
      latch.await();
      readLock.lock();
      return git;
    }
docs: <p>Retrieves the common reference to a GitService.</p>
  <p>If the reference has not been set yet, any calling threads will block until the reference is set or the thread is interrupted.</p>
  
  @return The common reference to {@link GitService}.
  @throws Exception Thrown if the current thread has been interrupted while waiting for the GitService to initialize.